By Anttony
Could I connect to droplet webserver through droplet IP?
I have created a very simple nodejs web server. When I try to connect to this server through localhost (127.0.0.1), I have get right answer. it’s OK. But when I try connect to the server through droplet IP, I have get a timeout error. Ping to droplet IP works fine from my windows workstation.
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!
Normally you would use nginx or another web server as a reverse proxy. However if you’re set on accessing the app directly, have it listen on 0.0.0.0 instead of 127.0.0.1.
Check out if there is any firewall rules preventing web access. Also use netstat to see what addresses:ports are available and listening to connections:
netstat -plnt
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.