0

I want to create an HTTP server that serves devices connected to same network

I tried,

http.createServer(function (req, res) {
res.write('hello');
res.end();
}).listen(8080,'192.168.1.108');

then

http.createServer(function (req, res) {
res.write('hello');
res.end();
}).listen(8080,'0.0.0.0');

and more.

But it works well in the device I run the code but not in the device connected to the same network

Rajanand
  • 41
  • 7
  • Does this answer your question? [How do I connect to this localhost from another computer on the same network?](https://stackoverflow.com/questions/9682262/how-do-i-connect-to-this-localhost-from-another-computer-on-the-same-network) – Sibi Kandathil Aug 16 '21 at 10:31

0 Answers0