15
5
I'm not the most knowledgeable guy ever with networking, but here goes...
I've created an application with NodeJS and I'd like to test the application on my LAN with my family. The application listens on port 1337
for connections and I can access the application fine through my own PC by typing localhost:1337
, 192.168.0.3:1337
or even http://joel-pc:1337/
into my browser's address bar.
I will be also be running apache alongside NodeJS, and I can access this fine by typing 192.168.0.3
or http://joel-pc/
into a browser's address bar as long as it's connected to the same network.
Now here's the weird part; If I stop the apache service, change my node application to listen on port 80
(http) insted of 1337
, it will be accessible on my pc by typing localhost
, 192.168.0.3
or even http://joel-pc
into my browser's address bar. However, I still can't access NodeJS on any other PC on my network apart from my own.
I've tried creating an outbound rule within Windows 7 to allow access to port 1337, but I still can't get access to my NodeJS server on any other PC than my own, even if it's listening on port 80. Is there something obvious I'm missing out on here?
1
If you are on windows, you may need to allow the connection through Windows Firewall
– Aaron C – 2018-03-29T14:05:07.663This is a normal problem and usually involves allowing incoming connections to node.exe for the desired network types. On a laptop I wouldn't recommend enabling it for public networks, so you can have a little extra safety on public wifi, though you still need to set the network as a public network to make use of this. – Arlen Beiler – 2019-10-24T22:40:21.373
On which default port is
npm install
making its connexion? – Sandburg – 2020-02-25T15:12:54.2032What if, as a test only, you turn off your firewall? – cheesemacfly – 2013-04-11T18:17:18.043
1If I turn off my firewall I can access node perfectly, thank you :) But surely there must be a safer way of doing things? – Joel Murphy – 2013-04-11T18:26:02.093
1I've put it back on now, don't worry :) Should I post on there too? Or is there a way of moving my question over? thank you – Joel Murphy – 2013-04-11T18:39:06.777
1I have flagged your question saying it belongs to superuser. Not sure how long it will take but it should work! – cheesemacfly – 2013-04-11T18:45:05.547
2Cheers. I flagged it too because I read in another thread that it needs to be flagged by 3 users before any action is taken by a moderator – Joel Murphy – 2013-04-11T19:01:12.380
1Still not moved over? Where are the mods lol? :( – Joel Murphy – 2013-04-12T03:16:52.157
2The flag I raised has been deemed helpful, so not sure how long it can take! – cheesemacfly – 2013-04-12T14:26:41.697
1When you ran the server for the first time, didn't the firewall ask you to allow the program to run through or not? – cheesemacfly – 2013-04-15T14:35:17.770