Question

can not access my IP from the outside of the network.

Posted March 25, 2020 721 views
FirewallIPv6Ubuntu 18.04

I deployed my web to my droplet, and I could access my IP.
But the other guys could not access there from outside of the network…

how can I solve this 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.

×
2 answers

Hi there @mjj,

You need to make sure that the port that you are trying to access is open for everyone.

For example, if you are using the builtin Ubuntu firewall, you can allow access to the specific port with:

  • sudo ufw allow 80

If you are using the DigitalOcean Cloud firewalls, you can follow the steps here on how to configure your rules:

https://www.digitalocean.com/docs/networking/firewalls/how-to/configure-rules/

Hope that this helps!
Regards,
Bobby

  • Hi @bobbyiliev,

    Thank you so much.

    I did

    sudo ufw allow 80

    it is not open yet.

    What should I do next?

    Regards,
    mjj

    • Hi there @mjj,

      Do you see that the port is open when checking the status of your firewall? You can do that with the following command:

      • sudo ufw status

      Also if you run netstat does your webserver listen on port 80?

      • sudo netstat -plant

      Feel free to share the output of those two commands here.

      Regards,
      Bobby

thank you so much all, I was wrong on the networking settings.
Now I could fix the issue!

Submit an Answer