How to Change the TCP Port for IIS Services

Last reviewed: January 8, 1998
Article ID: Q149605

The information in this article applies to:

  • Microsoft Internet Information Server versions 1.0, 2.0, and 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: 1.00 prodiis tcp www ports
Keywords : iisconfig kbhowto
Version : 1.00
Platform : WINDOWS


THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: January 8, 1998
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.