Connection Refused to my Website (only on my IP/Network, on browser only)

Posted June 20, 2020 3k views

I was making minor content changes to my Wordpress website (standard Ubuntu 18.04 droplet WordPress setup), and suddenly all my requests from my browser to are refused. Apparently, this only occurs to devices connected to my home router. I can access correctly with 4G on my phone, and my friends can access the website in their homes.

I suspected it might be a DNS cache problem. But I can SSH into the droplet using my domain, through my home router, without any problems. I also tested that the domain resolves to the correct droplet IP address on my desktop machine.

This is really annoying since I cannot access my site directly. Does anybody have any ideas what the problem might be?

A possible related problem:

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.

Submit an Answer
2 answers

I realized somehow my IP address was banned with fail2ban. It worked after removing all fail2ban bans.

Hi @lichunshang,

This is quite strange! Firstly, I’ll recommend allowing your IP in your Firewall. You can achieve that by running the following commands

/sbin/iptables -A INPUT -p tcp -s XXX.XXX.XXX.XXX -j ACCEPT
/sbin/iptables -A OUTPUT -p tcp -d  XXX.XXX.XXX.XXX -j ACCEPT

Please remember to change XXX.XXX.XXX.XXX with your IP address. Next, make sure you are not the one blocking access to the said site. I’ve had cases before where the router/network/wi-fi a person is connected to is blocking some websites. This is common practice with some colleagues.

Lastly, check if you can open the website using an incognito browser, it might be some plugin you have installed that’s preventing you from seeing it.