Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

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 have apache 2.2 installed on windows vista. Currently apache responds to http://localhost/ with its default "it works" page. My computer has multiple IPs on it and I want it to listen on a particular IP. How can I do this?

share|improve this question

migrated from Jan 24 '11 at 15:42

This question came from our site for professional and enthusiast programmers.

I'd dearly love to know why you've tagged this question "recapcha". – middaparka Jan 24 '11 at 15:24

Bind Apache's server port to address.

In your Apache configuration use:


Or just:

Listen 80

Make sure you restart apache's daemon after changing this, and that your Windows Firewall is not preventing you from accessing port 80 through an external network interface.

share|improve this answer
Note that using 'Listen' or 'Listen 80' will cause Apache to listen and respond on all IP addresses your system is using. If you want it to listen on a single IP, replace with that IP. – Sean Staats Jan 24 '11 at 15:54

If you want to run Apache and IIS on the same machine, this is also possible.

Basically you have to tell the HTTP.SYS the IP addresses that you want it to listened to. These are the IP addresses that you do not want to use with Apache.

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.