Reputation: 598
I have set up a Node.js server on my computer, using the following code:
var http = require('http');
http.createServer(function (req, res) {
res.writeHead(200, {'Content-Type': 'text/plain'});
res.end('Hello World\n');
}).listen(1337, "0.0.0.0");
console.log('Server running');
Now, when I use this computer to go to http://localhost:1337/
, http://127.0.0.1:1337/
or http://192.168.178.28:1337/
(192.168.178.28
being my IPv4 address), it works fine.
When i try and use my iPad to visit the last one (ipv4 address) it doesn't work. Why could this be?
Upvotes: 0
Views: 118
Reputation: 598
Okay, turns out resetting my router did the job. Thanks to lazlojuly and Gonzalo Bahamondez for trying to help!
Upvotes: 1