Let IIS6 listen on one IP address

The Knowledgebase provides a database of answers to many Technical questions.

Let IIS6 listen on one IP address

Postby FTP » Mon Feb 07, 2011 4:22 pm

If your server has two IP addresses: 192.168.1.5 and 192.168.1.6, and you want to bind them for IIS and Wing FTP on port 80 (IIS takes 192.168.1.5:80, Wing FTP takes 192.168.1.6:80).

But you may find IIS will take all the IP addresses even though IIS is told to use the specific IP, it is because that Socket Pooling causes IIS to listen to all IP addresses, the Socket Pooling is enabled by default in IIS6, see the KB articles: http://support.microsoft.com/?id=238131, http://support.microsoft.com/kb/331062

And how to fix this IIS issue? Just open a command prompt and type the following commands:
Code: Select all
net stop http /y
httpcfg set iplisten –i 192.168.1.5:80
net start w3svc


Then everything will work fine, IIS will listen on IP 192.168.1.5, and it won't effect other program anymore.
FTP
Site Admin
 
posts 1232
 
joined Tue Sep 29, 2009 6:09 am

Return to Knowledgebase

Who is online

Users browsing this forum: No registered users and 0 guests

cron