wget --verbose http://myserviceip:80 works fine, but times out if called from outside droplet

May 31, 2018 433 views
Nginx Ubuntu 16.04
 wget --verbose http://myip:80

–2018-05-31 20:42:39– http://myip/
Connecting to myip:80… connected.
HTTP request sent, awaiting response… 200 OK
Length: 11321 (11K) [text/html]
Saving to: ‘index.html’

index.html 100%[=====================================================================================>] 11.06K –.-KB/s in 0s

2018-05-31 20:42:39 (303 MB/s) - ‘index.html’ saved [11321/11321]

Access.log does not change with outside connection attempts

Error.log has the following register in the last line (not sure if of any use)

2018/05/31 20:21:38 [emerg] 1814#1814: still could not bind()
2018/05/31 20:37:06 [notice] 2714#2714: signal process started

Anyone? Thank you!

1 comment
  • wow…funny enough just noticed that i can’t even ping my droplet nor access phpmyadmin as I could before

1 Answer

Hello,

This sounds like a problem with your firewall. I would recommend taking a look at this tutorial on how to work with the default Ubuntu firewall:

https://www.digitalocean.com/community/tutorials/how-to-set-up-a-firewall-with-ufw-on-ubuntu-18-04

Regards,
Bobby

by Brian Boucheron
This tutorial will show you how to set up a firewall with UFW on Ubuntu 18.04.
Have another answer? Share your knowledge.