I can't connect to my droplet ip address

October 24, 2019 134 views
Firewall

this is my droplet ip address => 104.248.70.243
I’ve checked my pm2 status saying it’s online
when I try with my port num like this 104.248.70.243:3005 then I can connect to my site…

I’m guessing it’s either a proxy problem or my ufw rules problem??

1 Answer

Hello,

I’ve tested the connection and I am able to connect:

# telnet 104.248.70.243 3005

Trying 104.248.70.243...
Connected to 104.248.70.243.
Escape character is '^]'.
^]

Are you still experiencing the problem? If so maybe the 3005 is closed on your local network for outgoing TCP traffic.

Regards,
Bobby

  • Thank you so much for answering Bobby!
    my goal is to connect my site to my domain name

    digital ocean dns records look like ——

    type value hostname
    A 104.248.70.243 ilgiyourpixels.com
    A 104.248.70.243 www.ilgiyourpixels.com
    NS ns1.digitalocean.com. ilgiyourpixels.com
    NS ns2.digitalocean.com. ilgiyourpixels.com
    NS ns3.digitalocean.com. ilgiyourpixels.com

    godaddy nameservers———–

    ns1.digitalocean.com
    ns2.digitalocean.com
    ns3.digitalocean.com

    This was not working for me at all
    so I thought the fact that I get “welcome to nginx page” if I type http://104.248.70.243 was the thing that was causing the problem.

    Am I supposed to get nginx page when I go without 3005 port?
    If there’s nothing wrong with my connection, why am I not being able to connect my domain name?

    • Hi @anhayzzing33

      It looks like that your DNS records are setup correctly. I can see the Nginx welcome page when I visit your site. Note that it usually takes between 1 and 72 hours for the DNS cache to clear over the Globe before you could see your new DNS records.

      If you would like to see your application when you visit your domain name without having to add the :3005 port at the end, what you need to do is setup Nginx as a reverse proxy. You can follow the steps on how to do that here:

      https://www.digitalocean.com/community/tutorials/how-to-set-up-a-node-js-application-for-production-on-ubuntu-16-04#set-up-nginx-as-a-reverse-proxy-server

      You only need to follow the Set Up Nginx as a Reverse Proxy Server steps and adjust the port to 3005 so that it matches your setup.

      Hope that this helps!
      Let me know how it goes!
      Regards,
      Bobby

      by Brennen Bearnes
      Node.js is an open source JavaScript runtime environment for easily building server-side and networking applications. Node.js applications can be run at the command line but this guide focuses on running them as a service using PM2, so that they will automatically restart on reboot or failure, and can safely be used in a production environment.
Have another answer? Share your knowledge.