Saturday, February 21, 2009

How to Configure IIS to listen on IP

How to solve the problem
To solve the problem you have to disable socket pooling for those protocols that you plan to publish on the box. For SMTP, NNTP and POP3 you can follow the following procedure:
1.    Open the command box
2.    change the directory to Inetpub\scripts
3.    Enter one of the following depending on the service that you want to disable socket pooling for:
a.  For SMTP:
net stop smtpsvc
cscript adsutil.vbs set smtpsvc/disablesocketpooling true
net start smtpsvc

C:\Inetpub\AdminScripts>netstat -ano | find “:25″
TCP                 LISTENING       2672
C:\Inetpub\AdminScripts>netstat -ano | find “:25″
TCP              LISTENING       2672
This should also work for POP3 (use pop3svc) and IMAP4 (use imap4svc). I currently experience an error when trying to disable socket pooling for NNTP.

How about HTTP and HTTPS?

To configure http.sys you will need httpcfg.exe from the Windows Server 2003 Support Tools.  Install using suptools.msi.

Enter the following to bind http.sys to the desired IP address:
net stop http /y
httpcfg set iplisten –i <address internal interface>
net start w3svc

Some Commands

httpcfg query iplisten

httpcfg set iplisten -i
httpcfg query iplisten
httpcfg delete iplisten -i

set    query    delete
ssl    urlacl    iplisten

HOW TO – Configure ISA & SMTP
1)    Install SMTP on each ISA member.
2)    Set disable socket pooling = true
4)    If you are using Server Publishing Rules to allow inbound access to your SMTP relay, then select an internal IP address.

1 comment: