Friday, November 25, 2016

Change rdp default port

If you have many computers at home or on a network and you have to connect to them remotelly using RDP you will have to change the default port and set a different one on every computer so you can then set the port forwarding rules on your wan router.

To change the default port you have to edit the registry.
Open regedit and navigate to :
HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\Terminal Server\WinStations\RDP-Tcp\PortNumber

Change the port for ex to 3390 , 3391 etc and then set the port forward rules mapping the port to a fixed ip. You can either set the computers with fixed ip or map them in the dhcp server with ip & mac binding or Reserved IP Address.

You can use check open port to check if your port forwarding is working properlly and the rpd service is listening to the specified port.