By ahokinson
I’ve seen this question asked a million times before, but I’ve never seen a satisfactory answer. “All ports are open by default.” is not helpful.
* Running on http://127.0.0.1:5000/ (Press CTRL+C to quit)
lsof -i :5000 yields
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
python 11824 root 3u IPv4 10213572 0t0 TCP localhost:5000 (LISTEN)
But it doesn’t work. I have this working on localhost, but it just won’t work over the internet.
http://www.yougetsignal.com/tools/open-ports/ shows that the port is closed.
Does anyone have any advice?
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!
Your program is listening on 127.0.0.1, the loopback interface, which mean that it’s only accessible from the Droplet itself. In order to be able to access it externally, you will need to configure it to bind to 0.0.0.0 instead.
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.