Unable to Connect RDP (Mac & Windows)

%3CLINGO-SUB%20id%3D%22lingo-sub-2963997%22%20slang%3D%22en-US%22%3EUnable%20to%20Connect%20RDP%20(Mac%20%26amp%3B%20Windows)%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2963997%22%20slang%3D%22en-US%22%3E%3CP%3EHi%2C%3C%2FP%3E%3CP%3EI%20have%20created%20VM%20on%20Azure%20%26amp%3B%20now%20having%20trouble%20to%20connect%20the%20VM%20with%20Microsoft%20RDP%20(Mac%20%26amp%3B%20Windows)%3C%2FP%3E%3CP%3EMy%20RDP%20setup%20is%20correct%20no%20issue%20with%20it.%20Whenever%20I%20try%20to%20connect%20my%20VM%20it%20give%20me%20following%20error%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EOn%20Mac%20-%20Erro%26nbsp%3Bcode%20%3A%200x4%3C%2FP%3E%3CP%3EOn%20Windows%20-%20internet%20error%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ESupport%20%26amp%3B%20feedback%20shall%20be%20very%20much%20appreciated..%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ERegards%2C%20Faraz%20Shaikh%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2964692%22%20slang%3D%22en-US%22%3ERe%3A%20Unable%20to%20Connect%20RDP%20(Mac%20%26amp%3B%20Windows)%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2964692%22%20slang%3D%22en-US%22%3E%3CP%3EThis%20case%20needs%20more%20explanation.%26nbsp%3B%3C%2FP%3E%3CP%3EYou%20are%20trying%20to%20connect%20to%20a%20published%20desktop%20via%20the%20Remote%20Desktop%20tool%3F%20This%20SessionDesktop%20is%20attached%20to%20a%20session%20host%3F%20Is%20the%20session%20host%20%22Available%22%20within%20the%20Azure%20portal%3F%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2967076%22%20slang%3D%22en-US%22%3ERe%3A%20Unable%20to%20Connect%20RDP%20(Mac%20%26amp%3B%20Windows)%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2967076%22%20slang%3D%22en-US%22%3E%3CP%3EHi%20%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F1157402%22%20target%3D%22_blank%22%3E%40RobJanssen%3C%2FA%3E%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20have%20created%20a%20Virtual%20Machine%20on%20Azure%20and%20trying%20to%20connect%20with%20Microsoft%20Remote%20Desktop%20for%20Mac.%3C%2FP%3E%3CP%3EI%20have%20check%20the%20screenshot%20also%20for%20my%20VM%20via%20azure%2C%20everything%20looks%20ok.%20Unfortunately%20I'm%20not%20able%20to%20connect%20my%20VM%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ERegards%2C%20Faraz%20Shaikh%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2967240%22%20slang%3D%22en-US%22%3ERe%3A%20Unable%20to%20Connect%20RDP%20(Mac%20%26amp%3B%20Windows)%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2967240%22%20slang%3D%22en-US%22%3E%3CP%3EHi%20Faraz%2C%3CBR%20%2F%3E%3CBR%20%2F%3EOkay%2C%20so%2C%20is%20it%20Azure%20Virtual%20Desktop%20related%3F%20Or%20is%20it%20just%20an%20IAAS%20VM%3F%3CBR%20%2F%3EIf%20it%20needs%20to%20be%20a%20AVD%20session%20host%20I%20suggest%20to%20follow%20this%20well-documented%20step-by-step%3A%3CBR%20%2F%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Fvirtual-desktop%2Fcreate-host-pools-azure-marketplace%3Ftabs%3Dazure-portal%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Ehttps%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Fvirtual-desktop%2Fcreate-host-pools-azure-marketplace%3Ftabs%3Dazure-portal%3C%2FA%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ELet%20me%20know!%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EKind%20regards%2C%3C%2FP%3E%3CP%3ERob%3C%2FP%3E%3C%2FLINGO-BODY%3E
MVP

Hi,

I have created VM on Azure & now having trouble to connect the VM with Microsoft RDP (Mac & Windows)

My RDP setup is correct no issue with it. Whenever I try to connect my VM it give me following error 

 

On Mac - Erro code : 0x4

On Windows - internet error

 

Support & feedback shall be very much appreciated..

 

Regards, Faraz Shaikh

9 Replies

This case needs more explanation. 

You are trying to connect to a published desktop via the Remote Desktop tool? This SessionDesktop is attached to a session host? Is the session host "Available" within the Azure portal? 

Hi @RobJanssen,

 

I have created a Virtual Machine on Azure and trying to connect with Microsoft Remote Desktop for Mac.

I have check the screenshot also for my VM via azure, everything looks ok. Unfortunately I'm not able to connect my VM

 

Regards, Faraz Shaikh

Hi Faraz,

Okay, so, is it Azure Virtual Desktop related? Or is it just an IAAS VM?
If it needs to be a AVD session host I suggest to follow this well-documented step-by-step:
https://docs.microsoft.com/en-us/azure/virtual-desktop/create-host-pools-azure-marketplace?tabs=azur...

 

Let me know!

 

Kind regards,

Rob

Hi @RobJanssen

I followed the steps unfortunately it didn't work for me.. 

 

Regards, Faraz Shaikh 

@Faraz Shaikh 

 

Hi  

What is your configuration are you trying to connect from Internet with public IP or from private ? 

Can you just verify  the connectivity options in Connection Troubleshoot  (Support + troubleshooting blade ) 

 

You also can use Azure Bastion to quickly see if it's an Azure related problem or not  .

Hi @ibrahimambodji

RDP there is no luck, I tried deleting all my resources unfortunately it didn't work for :( I'm still struggling to connect with RDP.  However Azure Bastion I was able to connect to my VM.

 

Any suggestions on RDP ?

 

Regards, Faraz Shaikh

Are you targeting a public or private ip in the rdp connection ? . You are probably missing a network security group rule here . You need to create a RDP rule to open the RDP port (3389).
I'm using public IP to connect..
Could you please guide me where are network setting & what changes should I do ?
Regards, Faraz Shaikh

@Faraz Shaikh 

 

Hi  in the virtual machine settings  go  to networking then add a rule that allow inbound connection on port 3389. You can leave any any for testing purpose only but ideally specify  the public ip of your  network for the source IP address (instead of any)