Miki1 Posted January 17, 2021 Share Posted January 17, 2021 Hello, I need help with php, I don't understand what that could be , otherwise I run the page via a wampserver, I would be grateful for any kind of help. Quote Link to comment https://forums.phpfreaks.com/topic/312015-no-connection-could-be-made-because-the-target-machine-actively-refused-it/ Share on other sites More sharing options...
requinix Posted January 18, 2021 Share Posted January 18, 2021 The error message in your title means the server is not running, or at least not running on the port you're trying to connect to. Quote Link to comment https://forums.phpfreaks.com/topic/312015-no-connection-could-be-made-because-the-target-machine-actively-refused-it/#findComment-1583831 Share on other sites More sharing options...
Moorcam Posted January 20, 2021 Share Posted January 20, 2021 Just restart the DNS server in WAMP and it should work for you. Quote Link to comment https://forums.phpfreaks.com/topic/312015-no-connection-could-be-made-because-the-target-machine-actively-refused-it/#findComment-1583915 Share on other sites More sharing options...
murphybeck Posted February 14, 2022 Share Posted February 14, 2022 This error is a network-related error occurred while establishing a connection to the Server. It means that the error is occurring because there is no server listening at the hostname and port you assigned. It literally means that the machine exists but that it has no services listening on the specified port . So, no connection can be established. 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. Quote Link to comment https://forums.phpfreaks.com/topic/312015-no-connection-could-be-made-because-the-target-machine-actively-refused-it/#findComment-1594120 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.