Report this

What is the reason for this report?

Port 80 connection refused

Posted on November 6, 2017

I am trying to set up a webpage for my wife, my problem is basically when I run curl from my local machine (curl codingdiva.com) “Failed to connect to codingdiva.com port 80: Connection refused”. I can successfully curl when I ssh into the machine and get my index page: curl codingdiva.com <html> <head> <title>Coding Diva Test</title> </head>

<body>
<h1>Coding Diva test</h1>
</body>

</html>

After spending the entire weekend trying various things, I uninstalled and re-installed. I have now seen nearly every tutorial on youtube for this :-). And, without fail, they install nginx, pop their IP address into the browser, and get the friendly nginx page. I do not. I get “The site cannot be reached”.

Here is my netstat result: Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name tcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN 21712/nginx -g daem tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 13009/sshd
tcp6 0 0 :::80 :::* LISTEN 21712/nginx -g daem tcp6 0 0 :::22 :::* LISTEN 13009/sshd

Can someone suggest what step i have missed? Thanks! Joe

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Start building today

From GPU-powered inference and Kubernetes to managed databases and storage, get everything you need to build, scale, and deploy intelligent applications.