My droplet is functioning. I can hit it at the IP address. My domain is registered at Network Solutions and my nameservers are pointing to ns1.digitalocean.com, ns2.digitalocean.com, ns3.digitalocean.com. I’ve set up A records. I can ping the IP address and the domain on the command line, and all seems well.

I don’t exactly know what is the issue. When I ping my domain I see my droplet IP address. But when I try reaching for it doesn’t connect.

Help is appreciated.

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

Hello, @noahShark

Could you please let me know what OS you’re using and if you’ve properly configured the virtual host for the domain name in question? Basically some general information about your Droplet in order to give you some additional troubleshooting steps.

Keep in mind that DNS changes might take up to 48 hours in order to fully update, due to ISP’s DNS cache and general DNS propagate. However it usually happens a lot faster.

Regards,
Alex

  • I am using Ubuntu18.04.3. When I ping my domain I am able to see the correct IP address. I have written flask app and server config using Nginx I basically followed this tutorial . But I am stuck right before step 6.

    by Justin Ellingwood
    by Kathleen Juell
    In this guide, you will build a Python application using the Flask microframework on Ubuntu 18.04. The bulk of this article will be about how to set up the Gunicorn application server and how to launch the application and configure Nginx to act as a front-end reverse proxy.
    • Hey, @noahShark

      Thanks for getting back to me.

      Could you please confirm if you’ve completed the following tutorials before going with the steps listed in the article? You will need to install/configure Nginx and also do the Initial Server Setup on the Ubuntu 18.04 Droplet. Both article are listed in the Prerequisites part in the beginning of the Gunicorn and Nginx on Ubuntu 18.04 tutorial

      https://www.digitalocean.com/community/tutorials/how-to-install-nginx-on-ubuntu-18-04

      https://www.digitalocean.com/community/tutorials/initial-server-setup-with-ubuntu-18-04

      Can you please let me know which part of step 5 you’re currently on and if you’re receiving any error messages during the process?

      Regards,
      Alex

      by Justin Ellingwood
      by Kathleen Juell
      Nginx is one of the most popular web servers in the world and is responsible for hosting some of the largest and highest-traffic sites on the internet. It is more resource-friendly than Apache in most cases and can be used as a web server or reverse proxy. In this guide, we'll discuss how to get Nginx installed on your Ubuntu 18.04 server.
      • Hi, I have completed both the tutorials. In the 5th step, I am not receiving any error.

      • sudo systemctl restart nginx I have completed till here but when I open my domain I do not see my created flask app

        • Hey, @noahShark

          Can you please give me the output of the following command:

          netstat -plunta | grep 5000
          

          This will basically check if there is a service listening on this port. This should be the fact if you’ve executed the flask’s start command:

          python myproject.py
          

          Let me know how it goes.

          Regards,
          Alex

          • tcp 0 0 0.0.0.0:5000 0.0.0.0:* LISTEN 3026/python3
            tcp 0 0 165.22.221.145:5000 43.252.26.17:52452 TIME_WAIT -
            tcp 0 0 165.22.221.145:5000 43.252.26.17:52453 TIME_WAIT

            This is the output that I got.

Hello, @noahShark

Thanks for providing the netstat output, looking at this everything seems fine. I’ve just followed the tutorial on a fresh droplet and everything seems to be working just fine.

Could you please copy/paste your nginx config file so we can check if everything is correctly done there? I think this may be the culprit of the issue.

What I need to mention is that I was not using the root user but just a user with sudo privileges in order to complete the setup.

Regards,
Alex

Submit an Answer