Tech Cruize
Tech Cruize

Reputation: 107

: could not connect to redis Instance at XX.XXX.XX.XXX:6379

Hi I am trying to connect to a redis server listening on port 6379 on AWS EC2 linux server.

container.Register<IRedisClientsManager>(c => new PooledRedisClientManager(new[] {"XX.XXX.XX.XXX:6379"})); 

I performed following steps , created a inbound rule as Custom TCP allowing 6379 port ,and changing redis.conf bind to XX.XXX.XX.XXX:6379 or 0.0.0.0 but still unable to connect to server , can anyone help.

Here is my inbound rule on AWS

Custom TCP Rule TCP 6379 0.0.0.0/0

Upvotes: 0

Views: 28561

Answers (1)

krishna_mee2004
krishna_mee2004

Reputation: 7366

Enable telnet on your local machine. Run: telnet XX.XXX.XX.XXX 6379

ensure that the IP you are trying to connect to is accessible from your machine.

ensure that redis is configured properly to connect on the public IP

Upvotes: 1

Related Questions