Wednesday, April 29, 2015

IIS don't recognize a new IP address

To resolve this issue, where IIS does recognize an IP use the Netsh command prompt utility to configure the IP listen list in Windows Server 2008.

The reason it isn't useing the IP is because it is not listed in the IP Listen list so we need to add it to that. You can see what is in the list by doing the following.

To see the IP listen list

Click Start, click Run, type cmd, and then click OK. A Command Prompt window opens.

Then type: netsh http show iplisten
the netsh tool will return the information from the IP listen list

To add an IP address to the IP listen list

  1. Click Start, click Run, type cmd, and then click OK. A Command Prompt window opens.
  2. At the command prompt, type the following command:
    netsh http add iplisten xxx.xxx.x.x
    Note xxx.xxx.x.x represents the IP address that you want to add.

    If the IP address is successfully added, you receive the following message:
    IP address successfully added
  3. To list the IP address, type the following command after the IP address is added:
    netsh http show iplisten
    The Netsh utility returns the following information:
    IP addresses present in the IP listen list: xxx.xxx.x.x
  4. Stop the HTTP service and its dependent services. To do this, type the following command:
    Net stop http
  5. Restart the HTTP service and its dependent services. To do this, type the following command:
    Net start http
  6. Restart the W3SVC service. To do this, type the following command:
    Net start w3svc

No comments: