Question

I can't access my site but when i using vpn i can

Posted August 8, 2020 173 views
Ubuntu 16.04

Hi everyone.

Iam using Ubuntu Wordpress 4.8 on 16.04
So I cannot access my site unless I use vpn or use another WiFi network. If I connect from my phone using my data, it works fine.

please help me

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.

×
2 answers

Hi @theresiasandi,

It’s possible your server has blocked your IP address, the one that you use when using your Wifi network.

What you can do is get your IP once you are connected to the Wifi network by accessing the website https://ip.me.uk . This website will give you your IP address.

Once you have it, SSH to your droplet

ssh root@XXX.XXX.XXX.XXX

Where XXX.XXX.XXX.XXX is your actual droplet IP address or use the console in your DigitalOcean Control Panel.

In there you’ll need to allow the Ip you took for the website above like so

iptables -A INPUT -s XXX.XXX.XXX.XXX -j ACCEPT

Please remember XXX.XXX.XXX.XXX is your IP now.

Regards,
KFSys

  • i follow this instruction but did'nt work yet,

    and i got this from my console (The “ufw” firewall is enabled. all port except for 22, 80, and 443 are BLOCKED.)
    is that problem port 443 are BLOCKED?

Hi there @theresiasandi,

I could suggest running a traceroute or mtr from your PC to your Droplet’s IP address to see where exactly the connection drops.

Also I could suggest checking your firewall and making sure that your home IP address is allowed.

Do you get any errors or does the connection just time out?

Regards,
Bobby

Submit an Answer