How to change the TCP port for IIS services

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


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

Important This section, method, or task contains steps that tell you how to modify the registry. However, serious problems might occur if you modify the registry incorrectly. Therefore, make sure that you follow these steps carefully. For added protection, back up the registry before you modify it. Then, you can restore the registry if a problem occurs. For more information about how to back up and restore the registry, click the following article number to view the article in the Microsoft Knowledge Base:

322756 How to back up and restore the registry in Windows

Microsoft Internet Information Server versions 1.0 to 2.0

  1. Start Regedt32.exe and locate the following registry subkey:


  2. Find the TCP Port 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.

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.

Microsoft Internet Information Services 7.0

  1. Open Internet Information Services (IIS) Manager.

  2. Select the Web site that you wish to configure.

  3. In the Action pane, click Bindings.

  4. Click Add to add a new site binding, or click Edit to change an existing binding.

  5. Click OK to apply the changes.

Need more help?

Expand your skills
Explore Training
Get new features first
Join Microsoft Insiders

Was this information helpful?

Thank you for your feedback!

Thank you for your feedback! It sounds like it might be helpful to connect you to one of our Office support agents.