cancel
Showing results for 
Search instead for 
Did you mean: 

no connection could be made because the target machine actively refused it

Anonymous
Not applicable
Hello Everyone,   I would like to share with you a issue that I have some weeks in my production environment. Actually, I have 3 Resource as PROD and one of these resources are showing the follow message: "no connection could be made because the target machine actively refused it" But the other 2 resources are working correctly. Please find attached the print screen of my resources.   What could be this issue?   Regards,  
2 REPLIES 2

John__Carter
Staff
Staff
Check you have 2 way network connectivity between the resources and the app server and between the resources and the client. Sometimes if the firewall on a machine is blocking, you can get issues like this. Also check that the machine names can be resolved to IP addresses.

evanchirger
Level 2
Generally, it happens that something is preventing a connection to the port or hostname. Either there is a firewall blocking the connection or the process that is hosting the service is not listening on that specific port. This may be because it is not running at all or because it is listening on a different port. So, no connection can be established.

Try running netstat -anb from the command line to see if there's anything listening on the port you were entered. If you get nothing, try changing your port number and see if that works for you. In Windows operating systems, you can use the netstat services via the command line (cmd.exe) . On Linux you may need to do netstat -anp instead.

The target machine actively refused it occasionally , it is likely because the server has a full 'backlog' . Regardless of whether you can increase the server backlog , you do need retry logic in your client code, sometimes it cope with this issue; as even with a long backlog the server might be receiving lots of other requests on that port at that time.


------------------------------
evan chirger
------------------------------