Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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 from either my phone or even my computer.

ipconfig /all on my computer lists my ip address as

Wireless LAN adapter Wireless Network Connection:
    IPv4 Address. . . . . . . . . . . :

I can ping my phone's (internal) ip address [] from PC and vice-versa, I can ping my PC [] from my phone.

So why can't I access from my phone? (or PC)

Firewall is off.

share|improve this question
up vote 1 down vote accepted

I had specified a hostname when listening on the server.

server.listen(80, process.env.OPENSHIFT_NODEJS_IP || process.env.IP || '')

share|improve this answer

Needed to add


in Apache's httpd.conf

share|improve this answer

This code fixed the problem for me (adding local IP: in my case with localhost)

var app = express();
app.listen(3000,'' || 'localhost',function() {
    console.log('Application worker ' + + ' started...');

So you can access the server from http://localhost:3000 or (my local IP is

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.