Share via


change remote desktop port for azure virtual machines

Question

Thursday, June 27, 2013 2:36 PM

For security reasons, The port used by Azure for remote desktop (port 55080) is blocked in my company sub-net. Is there a way to change this port? or is there a thin client (using a web-based application) I can use for remoting instead of using Windows RDP?

All replies (3)

Thursday, June 27, 2013 6:34 PM âś…Answered | 1 vote

Hi Frank,

The public port created by default for RDP is a random one between 41952-65535. But you can edit the endpoint to change the public port to 3389. Go to Virtual Machines, select the VM, select Endpoints, select RemoteDesktop endpoint, click Edit Endpoint at the bottom and change the public port to 3389.

We use a random port instead of 3389 by default so that if bad guys are port scanning, they will have to scan a much larger range of ports instead of just 3389 to find a machine listening.

That is also why we have you specify an account other than Administrator, and a complex password, when provisioning the VM.

As an added security precaution you can remove the RDP endpoint whenever you are not administering the VM over RDP, and just add it back when you need to RDP to it again.

Thanks,
Craig


Thursday, June 27, 2013 4:52 PM

here is an old forum post that solves it

http://social.msdn.microsoft.com/Forums/windowsazure/en-US/2e62cc67-90dd-45c4-bb7a-14e979b26e20/how-to-correctly-change-the-default-rdp-port-in-an-azure-vm

in case you dont want to use RDP you can use freeware teamviewer (non web based but works over http and behind firewalls) software or logmein(web based) to get to your vm from behind firewall

Please mark as answered if it helped

Please mark as answered if it helped Vishal Narayan Saxena http://twitter.com/vishalishere http://www.ogleogle.com/vishal/


Thursday, March 23, 2017 10:45 AM | 1 vote

Hi Frank,

As you mentioned, using endpoint settings in old portal we can change the public port number. Is there any way to change the Public port of the virtual machine using new portal.