Tonight I decided to connect to my Microsoft Windows Azure environment from a hotel to test a few things.  When I tried to connect via RDP I was unable to successfully connect. 

  • I signed into my Azure account.
  • I chose my VM.
  • I clicked connect.

screenshot.143

  • I chose to open the RDP file.

screenshot.144

  • I clicked connect at the security warning.

screenshot.145

  • It hung for a while at connecting to.

screenshot.146

  • Eventually I got the typical remote desktop can’t connect to the remote computer for one of these reasons error.  

screenshot.147

  • This was odd as the VM is on and I had internet access.  I decided to look at the endpoints.  I noticed the public endpoint for RDP was an Azure typical high random public port number.  I wondered if there was something at this hotel that was blocking outbound access on that high port number. 

screenshot.148

  • I decided to edit the RDP public port number by clicking edit.

screenshot.149

  • I changed the port number to something lower(from 55220 to 20309).

screenshot.150

  • Azure updating.

screenshot.151

  • Azure updated.

screenshot.152

  • Now the public RDP port number was a little lower. 

screenshot.153

  • I went through the same steps to RDP to my Azure VM.
  • Connect

screenshot.154

  • Open the RDP file.

screenshot.155

  • Connect anyway in the security warning box.

screenshot.156

  • It tried to connect on that lower port number.

screenshot.157

  • It worked!

screenshot.158

 

Sometimes you can’t control or even know about the environment you’re at but it’s always nice to know you can change some things in Azure to get around it.