I have a Server 2003 SP1 machine with all the latest updates. IIS is
running on on this machine and I have 7 virtual websites set up. I have
added a second static IP address to one NIC I have in the machine. I
need to make IIS listen on only the first IP address and not the second.
Here is what I have done:
1) Went to every website and changed the ip address in the pull down to
the second IP address. This didn't work.
2) Stopped IIS (using iisreset /stop) and issued the command:
"httpcfg set iplisten -i <second ip address>" This returned:
"HttpSetServiceConfiguration completed with 0.".
I then issued the command "httpcfg query iplisten". This returned:
IP : <first ip address>
--------------------------------------
Started IIS (suing iisreset /start).
This didn't work
3) Stopped IIS (using iisreset /stop) and issued the command:
"cscript adsutil.vbs set w3svc/disablesocketpooling true" This returned:
disablesocketpooling : (BOOLEAN) True
I then issued the command:
"httpcfg set iplisten -i <second ip address>" This returned:
"HttpSetServiceConfiguration completed with 0.".
I then issued the command "httpcfg query iplisten". This returned:
IP : <first ip address>
--------------------------------------
Started IIS (suing iisreset /start).
This didn't work
To confirm that IIS was still listening to the second IP address, I
pointed a web browser on a machine on the same network to the second IP
address. When I returned "Bad Request (Invalid Hostname)", I knew that
IIS was answering.
Anyone have any ideas?
TIA