Using httpcfg to set the IP addresses that the server is listening on Win 2003
By default, IIS will grab all IP addresses for it’s use. So if a server has multiple IPs port 80 on all of them will be reserved by IIS. What if Apache needs to be running along with IIS on port 80? The answer is sellectively choose which IP address IIS has access to.
1. Open a command prompt. Start -> Run -> cmd
2. Stop the http service with the following command.
a. net stop http /y
3. Add all IP addresses IIS should listen on with the following. Substitute <ip address> for the IP needed. Only do one IP address per command.
a. httpcfg set iplisten -i <ip address>
4. Start the web service
a. net start w3scv
5. To verify what IPs are in the list run
a. httpcfg query iplisten
Using netsh (socket pooling) to set the IP addresses that the server is listening on Win 2008
1. Open a command prompt. Start -> Run -> cmd
2. Stop the web service with the following command
a. net stop http /y
3. Add all IP addresses IIS should listen on with the following. Substitute <ip address> for the IP needed. Only do one IP address per command.
a. netsh http add iplisten ipaddress=<ip address>
4. Verify the IPs in the list
a. netsh http show iplisten
5. Restart the web service
a. net start w3svc