Sending HTTP Request to Node JS from External Network
<p>I am trying to send the simplest NodeJS response to HTTP requests as below.
I used several listen parameters as below suggested by other posts. While the response works for computers on the same network, when I try sending request from networks outside (such as my mobile connected to cellular data), there is no response. Am I missing any sort of configuration which blocks external requests? I tried both internal and external IPs (that prints from the codes below) but no lock.
I am in oz using TPG internet, Belkin N300 router and Windows 10 (with only Windows defender).</p>

<pre><code>var http = require('http');

http.createServer(function (request, response) {
  response.writeHead(200, {'Content-Type': 'text/plain'});
  response.end('Amir Server\n');
}).listen(8080, "0.0.0.0");

console.log('Server running at http://0.0.0.0:8080/');

'use strict';
var getIP = require('external-ip')();

getIP(function (err, ip) {
    if (err) {
        // every service in the list has failed 
        throw err;
    }
    console.log(ip);
});


var os = require('os');

var interfaces = os.networkInterfaces();
var addresses = [];
for (var k in interfaces) {
    for (var k2 in interfaces[k]) {
        var address = interfaces[k][k2];
        if (address.family === 'IPv4' &amp;&amp; !address.internal) {
            addresses.push(address.address);
        }
    }
}

console.log(addresses);
</code></pre>