Cannot remote desktop into Windows Azure VM

38,749

Solution 1

Can you check that port 3389 is open in your VM? This port is normally used by remote desktop? You can check this from Virtual machine->Endpoint section within new azure preview portal. if there is no port defined, you will have to create new one.

Solution 2

It could be that the port is blocked, Azure VMs default to port 52137, in your endpoint settings alter this to the regular port 3389 - this worked for me.

Share:
38,749
Matt
Author by

Matt

Updated on June 08, 2020

Comments

  • Matt
    Matt almost 4 years

    I am running a trial of Windows Azure and setup a simple Windows Virtual Machine. However, I do not seem to be able to use the Windows Remote Desktop connection to remote into the machine. What am I doing wrong? At first sight it does not seem to like my userID and password. But then I also cannot ping the VM address. I do not want to go through VS or any other tool, I like to do a simple remote desktop connection through the Windows RMD tool.

  • Matt
    Matt almost 12 years
    Will add this, but I dont think it explains why I cannot even ping the ip of my instance...
  • Matt
    Matt almost 12 years
    Also what internal port do you use when setting a new external endpoint port to 3389? The internal 3389 port is reserved...;-(
  • Matt
    Matt almost 12 years
    I actually already have a remote desktop port set when creating a new instance, 3389 internally, 63252 externally. But nothing works, what worries me the most is that i cannot even ping the vm.
  • bhavesh lad
    bhavesh lad almost 12 years
    How are you trying to remote desktop? by running mstsc command on your machine? or from azure portal -> Connect? In mstsc, you will have to follow format of <your VMURL>:63252 when connecting
  • Matt
    Matt almost 12 years
    from my windows machine. I start the remote desktop tool, enter my instance IP and port that was externally exposed: xxx.xx.xxx.xxx:yyyy
  • Matt
    Matt almost 12 years
    but I first like to resolve why I cannot ping my instance. How can I specify the port when using the "ping.exe" command in the dos shell within windows 7?
  • bhavesh lad
    bhavesh lad almost 12 years
    You mayhave to add rule for ICMP in your VM's firewall.. Go to Control Panel --> System and security --> Windows Firewall --> Advanced settings --> Inbound rules --> New rule --> custom rule in Protocol and ports: Protocol: ICMPv4 on the same panel go to customize, choose "Specific ICMP types", check the box "echo request" Go to next... next... and save it.
  • Matt
    Matt almost 12 years
    thanks but this did not solve the problem. I am sure I can connect through remote desktop but I cannot get past the login, it refuses userID and password. I strongly assume the UserID is the hostname I specified for the instance, correct?
  • bhavesh lad
    bhavesh lad almost 12 years
    User id is Administrator for VM
  • Matt
    Matt almost 12 years
    Ha, it works. Just out of curiosity, where would I figure out that it was Administrator? And how can I change it? by the way, below was the response I got from MS after describing in detail what my problem was...
  • Matt
    Matt almost 12 years
    am happy to mark your responses as the correct answer if you want to put up an answer. You solved my problem, maybe its trivial but you really went the extra mile to help out, really appreciate your help (I upvoted your comments)
  • bhavesh lad
    bhavesh lad almost 12 years
    When you create VM, username is always administrator. You can create more uses after log in to that VM and going to use account section. Since this portal is in beta, it is not displayed anywhere. I am sure in final version, they will have more useful portal
  • Matt
    Matt almost 12 years
    hope so, right now it looks pretty bumpy to say the least. Is it MS's policy to block downloading and installing Google Chrome or Firefox to its VM instances? ;-) I did not manage to install either...
  • bhavesh lad
    bhavesh lad almost 12 years
    you can install without any issue. when downloading from IE, you have to change security policy of browser which is by default very strict and does not allow any downloading
  • Matt
    Matt almost 12 years
    ok thanks, locating the browser or any other standard windows component for that matter in this specific server instance was an adventure in itself ;-)
  • lrkwz
    lrkwz about 11 years
    Does not work for me, Port 3389 is open but I cannot connect (using remmina).
  • AvkashChauhan
    AvkashChauhan about 10 years
    @MattWolf This is the answer given almost 2 years back, and things have changed a lot. -ve voting an old answer depend on personal bad experience is not constructive.
  • Matt
    Matt about 10 years
    not sure why someone deleted my comment on why I downvoted. Guiding someone to the MS forums in case one does not find an answer here on StackOverflow is bizarre to say the least. And yes, my VM was running...with all due respect but I would downvote such answer twice if I could, not just an answer to my own question, simply because the quality content is close to zero. It basically boils down to "hey, if you checked your instance is running then come to our forum for help".