Modifying HTTP Ports

For most installations of Internet Information Server, you keep the HTTP server port number set at the default 80 to allow HTTP clients access to your site. However, it is simple to modify the well-known (standard) port numbers for HTTP.

Warning

Using Registry Editor incorrectly can cause serious, systemwide 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.

When possible, change configuration through Control Panel settings. However, as in the procedure that follows, there are settings that can be changed only by using Registry Editor.

To change the port used by the HTTP service

  1. Start the Registry Editor, Regedt32.exe.
  2. Click the HKEY_LOCAL_MACHINE window and locate the following key:

\System

\CurrentControlSet

\Control

\ServiceProvider

\ServiceTypes

\W3SVC

  1. Click W3SVC, then double-click the TcpPort entry on the right side of the screen.

The DWORD Editor dialog box appears.

  1. Click Decimal, then enter the port number in the Data box.
  2. Click OK and close Registry Editor.
  3. Stop and restart the WWW service.

Your HTTP server now monitors the specified port for all HTTP client requests.

Note

This situation affects the default port on the HTTP server only.