Thursday, March 29, 2012

Connection Refused

This error  may come due to following reasons, if you come across such errors look into these probable reasons:

1. When the machine IP or domain name you have specified is down.
2. The port no which you have specified is not open at the specified machine.
3. No program or process is listening on the specified port no.
4. Or may be active firewall is there at the specified machine and its blocking the incoming connection at the port.

Solutions you can try :


1. Check if you are specifying the correct ip and port no.
2. If you are using the domain name/ host name then check the you program is able to resolve the domain/host name to equivalent ip address.
3. Check if you are trying to connect from client on the same port no which server is opening.
4. Try telnet to IP:Port no if you can connect.
5. Try telnet localhost port  > at server and telnet server port > from client
6. Try to connect from different machine to verify the behaviour is same for all the clients trying to connect.

No comments:

Post a Comment

Thank you for Commenting Will reply soon ......

Featured Posts

Enhancing Unix Proficiency: A Deeper Look at the 'Sleep' Command and Signals

Hashtags: #Unix #SleepCommand #Signals #UnixTutorial #ProcessManagement In the world of Unix commands, there are often tools that, at first ...