Wordpress site experiencing ERR_CONNECTION_REFUSED


I have a 1 click install of Wordpress on Ubuntu 16.04 that is now experiencing ERR_CONNECTION_REFUSED when accessing the site via IP address. This occurred after logging into the wordpress admin account from two separate computers at the same time (different physical locations, different IP addresses). The error is happening at only one of these location’s wifi network. The site loads fine elsewhere - I even tested with my phone on a data connection with success, but as soon as I connect to the wifi here, the page will stop loading and shows the error.

What I did to try to fix: I cleared cookies in browser. This didn’t help. I then reset the Authentication Keys and Salts in the wp-config.php file. This didn’t help either.

I’m not sure how to proceed and my searches haven’t been helpful yet. What’s going on, and how can I regain access?

Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

I’m sure you already solved this but DO told me to whitelist my IP with:

iptables -I INPUT -s <allowed_ip> -j ACCEPT 
ufw allow from <allowed_ip> 

@jtittle Thank you for the response. Your suggestions unfortunately didn’t help, but I made an interesting discovery which I outlined towards the end of this reply.

To answer your questions, yes, I am able to login via SSH and connect via SFTP without any issue. This was how I managed to make edits to wp-config.php.

Option 1 was not successful. The firewall was active, so I deactivated it and still was unable to access the site. I’ll be contacting the support team and see if they have any leads.

I also tried restarting my apache server, and deleting then recreating the .htaccess via permalink save on my phone. No luck.

I was unable to locate the server logs on the home WordPress directory, any pointers there?

I did discover something interesting after some more searching for a solution. It’s possible that this is an ISP block. I tried running a tracepath command on my droplet and my output stopped here before terminating: … 4: be-10007-sur03.[my city.state.area] 31.888ms 5: be-231-ar01.[nearby city.state.area] 33.360ms 6: lag-14.ear3.[my city] 38.650ms 7: no reply 8: ae-1-3501.ear2.[nearby city] 94.633ms asymm 7 9: [redacted IP address] 93.737ms asymm 11 10: no reply 11: no reply … 30: no reply 31: no reply Too many hops: pmtu 1500 Resume: pmtu 1500

I’m not sure if I’m reading this right but it appears to hang once getting through Comcast’s data centers, leading me to believe that Comcast may be blocking the site. This may explain why my other location and my phone’s data connection works fine. I’ll be trying to contact Comcast about this too.

This worked for me. My issue was, after 3 unsuccessful login attempts the service blacklisted my home IP. Running these commands (as root) as solved my issue, thank you very much good sir!