I have created a node js server and I am not able to access it from outside the network.
var express = require('express');
var nodeapp = express();
var http = require('http');
var server = http.createServer(handleRequest);
function handleRequest(request, response){
console.log("Got some request" + request);
response.end("Response" + request.url);
}
server.listen(8086, "0.0.0.0", function() {
console.log("http server on ");
});
sudo iptables -L
Chain INPUT (policy ACCEPT)
target prot opt source destination
Chain FORWARD (policy ACCEPT)
target prot opt source destination
Chain OUTPUT (policy ACCEPT)
target prot opt source destination
My iptables don’t show anything. However I have a tomcat server which is on port 8080 and I am am able to access that.