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

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:

Submit an answer
Answer a question...

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.

Accepted Answer

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

Site Moderator
Site Moderator badge
June 20, 2020

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.

Regards, KFSys

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.