Stop IIS listening on all IP addresses

On a computer with multiple IP addresses, IIS greedily listens on all its IP addresses by default. This is a problem if you want to run something like Apache on one IP address, and IIS on the other.

IIS 5.0

In IIS 5.0, "socket pooling" is enabled by default. This feature makes it listen on all IP addresses.

To disable it, type the following at a command prompt:

CD\Inetpub\Adminscripts
cscript adsutil.vbs set w3svc/disablesocketpooling true

See Microsoft Knowledge Article 238131

IIS 6.0

In IIS 6.0 on Windows Server 2003, you need to add an IP address to the IIS IP inclusion list. For this you will need Microsoft Windows support tools.

To install Microsoft Windows support tools:

  1. Insert the Windows Server 2003 CD in the CD-ROM or DVD-ROM drive.
  2. When the CD opens, click Perform Additional Tasks.
  3. Click Browse this CD.
  4. Double-click Support.
  5. Double-click Tools.
  6. Double-click SUPTOOLS.MSI.
  7. Click Next, type your information in the Name and Organization boxes, click Next, and then click Next on the following screen.
  8. Click Next again to start the installation.
  9. Click Finish.

Then type the following to add an IP address to the IP inclusion list:

httpcfg set iplisten -i xxx.xxx.x.x

Type the following to list the IP addresses in the IP inclusion list:

httpcfg query iplisten

See Microsoft Knowledge Article 813368