dial tcp [MyIP]:80:connectex: No connection could be made because the target machine actively refused it.
Hello I am having problem accesing my ip address gives me this error.
dial tcp [MyIP]:80:connectex: No connection could be made because the target machine actively refused it.
1 Reply
Hi!
I'm sorry to hear that you are having issues connecting to your server. This error message is typically caused by a firewall rule or because a service has stopped running.
If you are using iptables, you can use the information in this Community site post to check and change your rules. It may also be helpful to see if firewalld or ufw is enabled.
sudo <service.name> status
You can also check the status of your web service, such as Nginx or Apache, and databases using the above command. If you find that the expected services aren't running, you can use the below command to start them.
sudo service <service.name> start
This should bring things back up for you, otherwise, further investigation will be needed. The output of the above commnand will give you some additional information that you can use in your search for answers. It will also be helpful to review your service logs. The below Community site post will give you some guidance on that, if need be.
I hope this has been helpful, and good luck!