Server Fault is a question and answer site for system and network administrators. 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

I can connect to a local python webserver via 'http://localhost:8000/' and '' However, I couldn't do something like '' The browser just prompt "could not connect to"

Any idea how to fix this? From another computer on the same network also can't connect to

The machines are Windows 7 Home premium.

share|improve this question

I haven't tried running a python webserver on Windows, but generally a webserver will be set to listen to a specific IP address and port. By default it's probably localhost (since that never changes).

Check the network configuration in your webserver software to see what it binds to. You might have a directive like:


which would listen on localhost/ only. I believe leaving the '' contents blank would have it listen on any available interface. You could also specify in the quotes. Either way, you may have to restart and/or change the IP address if you get a new dhcp-assigned address.

BTW, your second paragraph says "also connect connect to"... do you mean "also cannot connect to"?

share|improve this answer
A binding issue sounds like the problem to me as well. – joeqwerty Jun 7 '11 at 23:27

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.