DOCUMENT:Q229005 05-AUG-2000 [iis] TITLE :How to Connect to a Web or FTP Site Using Non-Default Port PRODUCT :Internet Information Server PROD/VER:winnt:4.0 OPER/SYS: KEYWORDS: ====================================================================== ------------------------------------------------------------------------------- The information in this article applies to: - Microsoft Internet Information Server 4.0 ------------------------------------------------------------------------------- SUMMARY ======= By default, Web sites use TCP port 80, and FTP sites use port 21. However, other ports may be assigned to a Web or FTP site. To specify a non-default TCP port when connecting through a Web browser, add a colon ( : ) and then the port number (for example "http://:" (without the quotation marks)) to the end of the URL. To specify the TCP using the Windows NT FTP command line utility, type "ftp" (without the quotation marks) to start the FTP utility, and then use the "open" command, followed by a space, and then the port number (for example "open " (without the quotation marks)). MORE INFORMATION ================ Specifying a Port When Using a Browser -------------------------------------- If a Web site on the local computer is using the non-default port of 81, type the following in the Address text box to open it in a browser such as Internet Explorer: http://localhost:81/ Similarly, to open an FTP site that uses the non-default port of 22 from the browser, perform the following session at a command prompt: ftp://localhost:22/ Specifying a Port When Using the FTP Utility -------------------------------------------- To open an FTP site that uses the non-default port 22, using the FTP utility, type the following at a command prompt: C:\>ftp ftp> open localhost 22 Errors Caused by Attempting to Connect with the Wrong Port Number ----------------------------------------------------------------- Below are the error messages displayed when you attempting to connect to a Web or FTP site using the incorrect port number. HTTP Using Internet Explorer 4.0 and 5.0: Internet Explorer cannot open the Internet site http://. A connection with the server could not be established. FTP Using Internet Explorer 4.0 and 5.0: Internet Explorer cannot open the Internet site ftp://. A connection with the server could not be established. FTP Command Line Utility: ftp: connect:Connection refused (c) Microsoft Corporation 2000, All Rights Reserved. Contributions by Kevin Zollman, Microsoft Corporation. Additional query words: www howto kbhowto ie akz ====================================================================== Keywords : Technology : kbiisSearch kbiis400 Version : winnt:4.0 Issue type : kbhowto ============================================================================= 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. Copyright Microsoft Corporation 2000.