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!
I am having the Same problem, not able to access apache, nodejs and other server from outside world by can access from localhost. Please tell the complete solution fast. I am using your ubuntu server, and I facing big problem in this.
Hi @pajaritomoyqi,
My first assumption would be the firewall. Try to allow incoming traffick to the port you are using on your application.
Additionally, set an IPv4 address as well and see if it would start working as well.
If it doesn’t work even after the above have been done, let me know I’ll try to dig around more!
Regards, KFSys
Hi @ecrout,
Can I ask you to provide us with your Nginx configuration file for your domain or default configuration file to see if there is anything that is out of order inside of it?
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.