Report this

What is the reason for this report?

Server not running globally

Posted on August 20, 2017

I am trying to create a node.js application, whenever I am running it in my droplet system, using “node server.js” command, it is only working in the local machine, i.e’, visible when I use “curl http://localhost:5000” command, but is not available globally, like in my browser whenever I go and search for “139.59.36.43:5000” or “nanna.website:5000”, it returns a page with message “THIS SITE CAN’T BE REACHED”

//my very simple node app

var http = require(‘http’);

var server = http.createServer(function(req, res){ res.setHeader(‘Content-Type’,‘text/html’); res.end(‘<b>Hello Manna!</b>’); });

server.listen(5000,function(){ console.log(“server running”); });

The error message that I receive in the browser **This site can’t be reached

nanna.website took too long to respond. Try: Checking the connection Checking the proxy and the firewall ERR_CONNECTION_TIMED_OUT**

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.