Microsoft KB Archive/149605

= How to Change the TCP Port for IIS Services =

Article ID: 149605

Article Last Modified on 2/19/2007

-

APPLIES TO


 * Microsoft Internet Information Server 1.0
 * Microsoft Internet Information Server 2.0
 * Microsoft Internet Information Server 3.0
 * Microsoft Internet Information Server 4.0
 * Microsoft Internet Information Services 5.0
 * Microsoft Internet Information Services 6.0

-



This article was previously published under Q149605



We strongly recommend that all users upgrade to Microsoft Internet Information Services (IIS) version 6.0 running on Microsoft Windows Server 2003. IIS 6.0 significantly increases Web infrastructure security. For more information about IIS security-related topics, visit the following Microsoft Web site:

http://www.microsoft.com/technet/security/prodtech/IIS.mspx



IMPORTANT: This article contains information about modifying the registry. Before you modify the registry, make sure to back it up and make sure that you understand how to restore the registry if a problem occurs. For information about how to back up, restore, and edit the registry, click the following article number to view the article in the Microsoft Knowledge Base:

256986 Description of the Microsoft Windows Registry



SUMMARY
It is possible to change the port that Internet Information Server (IIS) services will listen to. This can be useful when you try to run multiple web servers on the same computer.



MORE INFORMATION
WARNING: If you use Registry Editor incorrectly, you may cause serious problems that may require you to reinstall your operating system. Microsoft cannot guarantee that you can solve problems that result from using Registry Editor incorrectly. Use Registry Editor at your own risk.

Microsoft Internet Information Server versions 1.0 to 2.0
 Start Regedt32.exe and locate the following registry subkey:

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\ServiceProvider\ServiceType\W3SVC

 Find the TCP Port value and double-click it. The DWORD Editor dialog box should appear with the default value (0x50 Hex; 80 Decimal) listed. Change the decimal value to the number of the port that you want the World Wide Web Publishing Service to listen to.

NOTE: You can also follow steps 2 and 3 to change the following services:  MSFTPSVC: FTP Publishing Service GOPHERSVC: Gopher Publishing Service</ul> </li> Exit Regedt32.exe.</li> Stop and Restart the IIS Services by Using the Internet Service Manager.</li></ol>

Microsoft Internet Information Server version 3.0

 * 1) Open Internet Service Manager.
 * 2) Double-click on the computer corresponding to the WWW service.
 * 3) On the Service tab, change the TCP Port field to the desired port number.
 * 4) Click OK.
 * 5) Using the Internet Service Manager, stop and restart the IIS Services.

Microsoft Internet Information Services versions 4.0 to 6.0

 * 1) Open Internet Service Manager or Internet Information Services (IIS) Manager.
 * 2) If necessary, expand the Web server that you want, and then expand Web Sites.
 * 3) Right-click the Web site that you want to change.
 * 4) Click Properties.
 * 5) Click the Web Site tab.
 * 6) Change the TCP Port Number in the TCP Port edit box (or click Advanced for multiple Port settings).
 * 7) Click OK to save the changes.

Additional query words: prodiis tcp www ports

Keywords: KB149605

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.