Skip to main content
Answer confirmed
Question

You have an on-premises network.

You have an Azure subscription. The subscription contains a virtual machine that runs Windows Server.

You need to ensure that you can connect from the on-premises network to the virtual machine by using the Remote Desktop client.

Which outbound port should you allow on the on-premises firewall?

Your Answer

  • 53
  • 135
  • 3268
  • 3389 

Correct Answer

  • 3389

    This answer is correct.

Incorrect - Port 53 is used by DNS for name resolution, which is not directly related to the Remote Desktop client.

Incorrect – Port 135 is used by the Microsoft Endpoint Mapper, also known as the DCE/RPC Locator service, which helps in assigning dynamic ports to services and is not directly related to the Remote Desktop client.

Incorrect – Port 3268 is used by the global catalog in Active Directory, which is not directly related to the Remote Desktop client.

Correct - Port 3389 is the default port for RDP, which is used by the Remote Desktop client to connect to a remote machine.

Connect using Remote Desktop to an Azure VM running Windows - Azure Virtual Machines | Microsoft Learn