How to Change the TCP Port for IIS Services

ID: Q149605


The information in this article applies to:
  • Microsoft Internet Information Server versions 1.0, 2.0, 3.0


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: Using Registry Editor incorrectly can cause serious, system-wide problems that may require you to reinstall Windows NT to correct them. Microsoft cannot guarantee that any problems resulting from the use of Registry Editor can be solved. Use this tool at your own risk.

Use the Registry Editor (Regedt32.exe) to change the TCP port that the IIS Services will use.

  1. Start Regedt32.exe and locate the following registry subkey:
    
          HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\ServiceProvider
             \ServiceType\W3SVC
     


  2. Find the TcpPort value and double-click it.


  3. 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




  4. Exit Regedt32.exe.


  5. Stop and Restart the IIS Services by Using the Internet Service Manager.



Alternative Steps:

Microsoft Internet Information Server Versions 2.0 to 3.0

  1. Open Internet Service Manager.


  2. Double-click the Web Service you want to change.


  3. Change the TCP Port Number in the TCP dialog box.



Additional query words: prodiis tcp www ports

Keywords : iisconfig
Version : 1.00
Platform : WINDOWS
Issue type :


Last Reviewed: April 30, 1999
© 2000 Microsoft Corporation. All rights reserved. Terms of Use.