Hello, I’m using ubuntu 20.04 droplet. I’ve seen many tutorials that talked me that I don’t need many things to see my app run on the internet. They said that just run “pm2 start app_name” and then I can see my website on the internet by send my browser to “server_ip_address(ipv4):port_number”. In video, that works. But not for me.
When I try “curl http://localhost:port_number” or “curl http://127.0.0.1:port_number” in server connected bash, it works. But when I try to connect by ip address outside of server computer(or bash) the browser load page endlessly. I can’t get any logs both in digitalocean graph and pm2, about my attempt using ip address.
It happens even before I install nginx to server. I’ve heard that after install nginx, i can default nginx html when I get to my server ip address, but that also does not work.
Why does this happens? I can’t get where does this problem comes from. Because I use ipv6? Or because I set firewall which is in doc “Recommended Initial Droplet Configuration” (https://www.digitalocean.com/docs/droplets/tutorials/recommended-setup/)? And how can I solve that?
“netstat -plant | grep port_number” gives me this. tcp6 0 0 :::port_number :::* LISTEN PID/node
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!
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.
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.
Click below to sign up and get $100 of credit to try our products over 60 days!