Microsoft KB Archive/173663

= FP97: How to Use Microsoft Personal Web Server on Different Port =

Article ID: 173663

Article Last Modified on 6/11/2002

-

APPLIES TO


 * Microsoft FrontPage 97 Standard Edition

-



This article was previously published under Q173663



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
While the Microsoft Personal Web Server for Windows 95 is designed to run on the standard HyperText Transport Protocol (HTTP) port 80, it is sometimes more desirable to run the Web server on a non-standard port such as 8080. This article describes how to change the port for the Microsoft Personal Web Server.



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.

 If the FrontPage Server Extensions have been installed to port 80, uninstall them by following these steps:  On the Windows Start menu, click Run. In the Run box, type the following (including the quotation marks):

"C:\Program Files\Microsoft FrontPage\bin\fpsrvwin.exe"

NOTE: Change the path if you installed FrontPage to a folder other than the default folder shown in this example. In the Select Port Number box, click 80. Click Uninstall. </li> Stop the Microsoft Personal Web Server using these steps:  On the Windows Start menu, point to Settings, and then click Control Panel.</li> Double-click the Personal Web Server icon.</li> Click the Startup tab.</li> Click Stop.</li> Click OK.</li></ol> </li> Determine the correct hexadecimal value to use. To do this, follow these steps:  Start Microsoft Calculator by pointing to Programs on the Windows Start menu, pointing to Accessories, and then clicking Calculator.</li> On the View menu, click Scientific.</li> Enter the number you want to convert.</li> Click Hex.</li> Write down the value that the hexadecimal number is converted to.

NOTE: A valid port address is a 16-bit value, or 0 through 65535 decimal. However, when using the Microsoft Personal Web Server and FrontPage 97, keep this value below 32768.</li></ol> </li> Start the Registry Editor using these steps:  <li>On the Windows Start menu, click Run.</li> <li>In the Run box, type regedit and then click OK.</li></ol> </li> <li>In the Registry Editor, do the following: <ol style="list-style-type: lower-alpha;"> <li> Select the following registry key: <pre class="fixed_text">      HKEY_LOCAL_MACHINE\System\CurrentControlSet\control\ServiceProvider \ServiceTypes\W3Svc </li> <li>In the right pane, click TcpPort.

This is the TCP/IP port that the Microsoft Personal Web Server listens to in Hexadecimal (Base 16).

NOTE: Hexadecimal (Base 16) notation is comprised of the numbers 0 through 9 and the letters A through F. The counting sequence is 0, 1, 2, 3, .... 9, A, B, D, E, F, 10, ...., where 10 is actually the decimal value 16. Single-byte (8-bit) values are represented by the hexadecimal numbers 00 through FF; and two-byte (32-bit) values are represented by the hexadecimal numbers 0000 through FFFF. Often when working with hexadecimal, values are entered in a reverse- order, or low byte-high byte format. That is to say, if the true value in hexadecimal was 1122 you would enter the value in reverse- order as 2211. When working with the Microsoft Personal Web Server you will need to enter two-byte values in this fashion.</li></ol> </li> <li>Double-click "TcpPort" in the right pane.</li> <li>In the Edit Binary Value dialog box, enter the hexadecimal value you identified in step 3. Make sure to enter the value in reverse-order format if it is a 16-bit value, and then close the Registry Editor. For example, if you want to use port 8080, which is 901F in hexadecimal, type this value in the Edit Binary Value dialog box:

901F

</li> <li>On the Registry menu, click Exit.</li> <li>Start the Microsoft Personal Web Server, using these steps: <ol style="list-style-type: lower-alpha;"> <li>On the Windows Start menu, click Start, point to Settings, and then click Control Panel.</li> <li>Double-click the Personal Web Server icon.</li> <li>Click the Startup tab.</li> <li>Click Start.</li> <li>Click OK.</li></ol> </li> <li>Install the FrontPage Server Extensions, using these steps: <ol style="list-style-type: lower-alpha;"> <li>On the Windows Start menu, click Run.</li> <li>In the Run box, type the following (including the quotation marks):

"C:\Program Files\Microsoft FrontPage\bin\fpsrvwin.exe"

NOTE: Change the path if you installed FrontPage to a folder other than the default folder shown in this example.</li> <li>Click Install.</li> <li>When you are prompted to confirm the server port, verify that the port value is the value you converted to hexadecimal in step 3. If it is not, click Cancel and repeat steps 2 through 10 again.</li></ol> </li></ol>

You may now install or reinstall the FrontPage Server Extensions. When you are prompted by the "Confirmation Dialog" screen, verify that the "Server Port:" value is the same port value that you converted to hexadecimal earlier. If it is not, click the "Cancel" button and repeat steps 2 through 8 again.

Additional query words: 97 port MSPWS

Keywords: kbhowto kbinterop kbusage KB173663

-

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

© Microsoft Corporation. All rights reserved.