Access node.js local server though mobile via same shared wifi
Posted
by
laggingreflex
on Super User
See other posts from Super User
or by laggingreflex
Published on 2012-09-29T10:59:20Z
Indexed on
2014/08/19
16:23 UTC
Read the original article
Hit count: 238
EDIT: I was stuck in this situation before but then it was Apache-related But this time I'm using NodeJS, so the old answer doesn't help.
I'm running apache a NodeJS webserver (on port 80) on Windows 7. I want to access the webserver through my mobile which shares the wifi router with my pc locally.
http://localhost
works from PC.
But I can't access http://192.168.1.4
from either my phone or even my computer.
ipconfig /all
on my computer lists my ip address as 192.168.1.4
Wireless LAN adapter Wireless Network Connection:
IPv4 Address. . . . . . . . . . . : 192.168.1.4(Preferred)
I can ping my phone's (internal) ip address [192.168.1.5] from PC and vice-versa, I can ping my PC [192.168.1.4] from my phone.
So why can't I access http://192.168.1.4
from my phone? (or PC)
Firewall is off.
© Super User or respective owner