Feb 142008

By defauly Windows XP Remote Desktop port number is 3389

Some reason you decided to change the port number for RDP (but this has security implications :( ie do you want a remote desktop session open on port 3350 on your home or corporate PC)

If you want to change the port number

WARNING: If you use Registry Editor incorrectly, you may cause serious problems that may require you to reinstall your operating system. take a backup of your registry before doing any changes

You can use the Remote Desktop feature in Windows XP Professional to connect to your computer from another, remote computer.

WARNING: The Remote Assistance feature in Windows XP may not work properly if you change the listening port. To change the port that Remote Desktop listens on

Start>run type regedit click ok

Navigate the following key in the registry from left pane


On the Edit menu, click Modify, click Decimal, type the new port number, and then click OK.

close Registry Editor.

NOTE: When you try to connect to this computer by using the Remote Desktop connection, you must type the new port.

You need to make sure your firewall is opened for this port.

Incoming search terms:

  2 Responses to “How to change Windows XP Remote Desktop port number”

  1. Is it also possible to restricted RDP access via one of the server IP address (where a server has multiple IP addresses)

  2. @ECHO OFF
    set /P INPUT=Type PORTNUMBER: %=%
    echo Your Port Number was: %INPUT%
    reg add “HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\Terminal Server\WinStations\RDP-Tcp” /v PortNumber /t REG_DWORD /d %INPUT% /f
    netsh advfirewall firewall add rule name=”RDP-2″ dir=in action=allow protocol=TCP localport=%INPUT%

 Leave a Reply



You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>