Connecting a TS client to a different port

Connecting a TS client to a different port

How do I configure a Terminal Services client to connect to a port other than 3389? The reason for wanting to do this is that I am going through a Network Address Translation (NAT) box -- 3389 is forwarded to one specific server. If I want to be able to connect to any other server, I need to assign a different port number on the NAT box and configure my client to use that port number. The NAT box will reinstate the normal 3389 port number when it forwards the connection, so there is no need to change the port on which the server listens.

    Requires Free Membership to View

    When you register, you’ll also receive targeted alerts from my team of editorial writers and independent industry experts with the latest news, tips, and advice to help you do your job more efficiently and effectively. Our goal is to keep you informed on the hottest topics and biggest challenges faced by IT professionals today working with desktop virtualization technology.

    Margie Semilof, Editorial Director

    By submitting your registration information to SearchVirtualDesktop.com you agree to receive email communications from TechTarget and TechTarget partners. We encourage you to read our Privacy Policy which contains important disclosures about how we collect and use your registration and other information. If you reside outside of the United States, by submitting this registration information you consent to having your personal data transferred to and processed in the United States. Your use of SearchVirtualDesktop.com is governed by our Terms of Use. You may contact us at webmaster@TechTarget.com.

The answer depends on the version of RDP you're running. If you're using the client that comes with Win2k, you can export the .CNS file and edit it with Notepad to change the port from 3389 to whatever is appropriate. If you're using the Remote Desktop Connection, open the saved .RDP file in Notepad and edit the entry for the connection server to SERVERNAME:####, where "####" is the new port number. (You can also just direct users to type the port number after the name of the server they're connecting to, but editing the .RDP file is simpler and less prone to error.) If you do this, consider making the .RDP files read-only so that users cannot accidentally overwrite the server-port combination.

This was first published in September 2003