NodeJS Localhost LAN connection problem
Hello, I have developed a NodeJS server code here below #################################### var http = require('http'); var fs = require('fs'); http.createServer(function (req, res) {  fs.readFile('mywebsite.html', function(err, data) {     res.writeHead(200, {'Content-Type': 'text/html'});    res.write(data);     res.end();  }); }).listen(8080); #################################### But whenever I run the code, this runs on my computer local host without any problem. But whenever I try connecting my mobile with computer LAN and opening the port 'localhost:8080' it says 'webpage refused to connect' I can not find out what the problem is here , even after being connected to the same LAN in my mobile, port 8080 throws refuse error. Do Wifi and Hotspot matter ? Because my Computer's Wifi is connected to my Mobile Hotspot Any solutions? Thanks for your valuable time