Help - Search - Members - Calendar
Full Version: Disabling Socket Pooling (Run Another Application on Port 80 besides IIS 6.0)
The Planet Forums > Operating Systems > Microsoft Windows > Windows HOWTOs
Vinnie Pasetta
If you have an application which you need to run on port 80, you need to disable Socket Pooling. Even if you do not have IIS 6.0 (on Windows Server 2003) bound to a specific IP address, port 80 will still be in use.

If you want to run an application such as the Merak Mail Server on port 80, you cannot do so since it uses its own internal web server.

To disable Socket Pooling, you need a tool named httpcfg.exe which is available from the support tools on a Windows Server 2003 CD-ROM. (supporttoolssupport.cab) This is NOT available in the I386 directory on a Rack Shack server.

Once you have the application, open a command prompt and type

>net stop http /y

This will stop all IIS services

>httpcfg.exe query iplisten

If you received “HttpQueryServiceConfiguration completed with 1168.”

Then Socket Pooling is still at the default installation which is enabled on all IP addresses.

To only have IIS 6.0 respond on a specific IP address and release the other IP addresses, then type

>httpcfg set iplisten -i 10.0.0.1:80

Substituting the IP address appropriate for your server.

A successful change will result in “HttpSetServiceConfiguration completed with 0” being displayed.

To confirm the IP, type

>httpcfg.exe query iplisten

This will display all IP addresses IIS 6.0 is listening on.

You can now run another application on port 80 on another IP address.

I suggest rebooting the server but you can restart IIS 6 by typing

>net start w3svc

REFERENCE - http://support.microsoft.com/default.aspx?...kb;EN-US;813368
hostu
can it be done so that ip addreses x tru x is available for iis and only ip x1 is for a mail server on port 80 ie: i have a mailsever that can do its web thing on port 80 but would need one ip for the iis port 80 but also some for ssl etc... is this possible ?

thanks
chuck
Vinnie Pasetta
You can have as many ports you want to listen for IIS as you want and shaving off one for the mail server.
Nu2Linux
Ok how about this one.

Can I use one IP address for mail enable and one IP to run Exchange 2K on?

If so, any other place to get this utility other than the disk, as my only 2K3 install is the one here at RackShack.

Thanks!
Vinnie Pasetta
You shouldn't need to disable socket pooling to run two SMTP mail programs. I always configure the server to run Microsofts SMTP on the HTTP IP and Mail Enable or Merak on a second IP. (I like to use the Microsoft SMTP server to relay mail for apps like CDONTS and CDOSYS and other ASP/ASP.net applications.)
tmat
how do i enable socket pooling?
LighthousePoint
socket pooling is enabled by default.
aussie
QUOTE
Originally posted by Vinnie Pasetta
If you have an application which you need to run on port 80, you need to disable Socket Pooling.  Even if you do not have IIS 6.0 (on Windows Server 2003) bound to a specific IP address, port 80 will still be in use.

If you want to run an application such as the Merak Mail Server on port 80, you cannot do so since it uses its own internal web server.  

To disable Socket Pooling, you need a tool named httpcfg.exe which is available from the support tools on a Windows Server 2003 CD-ROM.  (supporttoolssupport.cab)  This is NOT available in the I386 directory on a Rack Shack server.

Once you have the application, open a command prompt and type

>net stop http /y

This will stop all IIS services

>httpcfg.exe query iplisten

If you received “HttpQueryServiceConfiguration completed with 1168.”

Then Socket Pooling is still at the default installation which is enabled on all IP addresses.

To only have IIS 6.0 respond on a specific IP address and release the other IP addresses, then type

>httpcfg set iplisten -i 10.0.0.1:80

Substituting the IP address appropriate for your server.

A successful change will result in “HttpSetServiceConfiguration completed with 0” being displayed.

To confirm the IP, type

>httpcfg.exe query iplisten

This will display all IP addresses IIS 6.0 is listening on.

You can now run another application on port 80 on another IP address.

I suggest rebooting the server but you can restart IIS 6 by typing

>net start w3svc

REFERENCE - http://support.microsoft.com/default.aspx?...kb;EN-US;813368


I tried this last night and doing so realized today that the default web site was disabled and none of our reseller could create domains. When i looked at the error msg it was referring to pop3 saying it couldnt create domains because of a pop3 error. So i looked around and found the default web site disabled. I tried everything to get it working again and couldnt. Rebooted the box it was still disabled. So i went into merk and changed the port back to 32000 from 80 and unbound the static ip we had it running on and placed Merak back on our shared ip. Guess what, the default web site spang back into action.

My question is, what does Merak running on a separate ip have anything to do with the ip the default web site is listening on? Im confused as to why this happend. So we are now back at the dreaded port 32000 wondering what to do about this.

Incidently after placing Merak back on the shared ip suddenly there were no more pop3 errors and users were able to create domains again.
LighthousePoint
Edit the default site and make sure it is bound only on ONE IP. By default, it tries to bind on all interfaces, which won't work with what you want to do.
aussie
So are you saying i have to setup the *UNASSIGNED* selection to my server ip for the following

Default Web Site
Helm Controller
Administrator
Microsoft Sharepoint

Also, can i disable Administrator? Howabout Default Web site. Cant one disabled these two?
aussie
Oops, i think i ran this;

CDInetpubAdminscripts

After you open the Adminscripts folder, type the following line at the command prompt:
cscript adsutil.vbs set w3svc/disablesocketpooling true

The command replies as follows:
disablesocketpooling : (BOOLEAN) True

Stop and start the IIS Admin service.
Restart the WWW service.

How do i reverse it? Do i just place false at the end of this command? I followed the wrong doc.
aussie
Where do i get the httpcfg.exe tool from?
aussie
Anyone know where i can get this tool?
tmat
submit a TT asking the win2k3 cd put on your hard drive.
Hey Vinnie, do you know how to undone this command?
rubaljain
QUOTE
Originally posted by tmat
Hey Vinnie, do you know how to undone this command?


You can undo command by :

QUOTE
httpcfg delete iplisten -i 'XX.XX.XX.XX:YY'
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2009 Invision Power Services, Inc.