Connect to Windows VMs using RDP  |  Compute Engine Documentation  |  Google Cloud (2024)

Windows

This document describes how to connect to Windows virtual machine (VM)instances using RDP. For other ways to connect to Windows VMs, see the followingguides:

  • Connect to Windows VMs using PowerShell
  • Connect to Windows VMs using the SAC
  • Connect to Windows VMs using SSH

Before you begin

  • Be sure the VM allows access through Remote Desktop Protocol (RDP). By default, Compute Engine creates firewall rules that allow RDP access on TCP port 3389. Verify that these firewall rules exist by visiting the firewall rules page in the Google Cloud console and looking for firewall rules that allow tcp:3389 connections.
  • If you haven't already, set up authentication. Authentication is the process by which your identity is verified for access to Google Cloud services and APIs. To run code or samples from a local development environment, you can authenticate to Compute Engine as follows.

    Select the tab for how you plan to use the samples on this page:

    Console

    When you use the Google Cloud console to access Google Cloud services and APIs, you don't need to set up authentication.

    gcloud

    1. Install the Google Cloud CLI, then initialize it by running the following command:

      gcloud init
    2. Set a default region and zone.

Connect to Windows VMs by using RDP

Compute Engine supports multiple ways to connect to your Windows instances.

Connect to Windows VMs using RDP | Compute Engine Documentation | Google Cloud (1)

The best way to connect to the remote desktop of a Windows instance depends onmultiple factors:

  • If you are connecting from anywhere over the public internet(Connecting from> Anywhere in theprevious illustration), it's best to enableIdentity-Aware Proxy TCP forwarding for yourproject. Then use IAP Desktop (on Windows) or the Google Cloud CLI incombination with an RDP client. For more information, see Microsoft Remote Desktopclients to connect to the Windows instance.If you cannot use Identity-Aware Proxy TCP forwarding, useChrome Remote Desktop.
  • If the VM instance has a public IP address and firewall rules permitRDP access, use an RDP client. For more information, see Microsoft Remote Desktopclients to connect to the Windows instance.
  • If the VM instance does not have a public IP and you are connecting by usingCloud VPN or Cloud Interconnect,you can connect to the VM's private IP address by using an RDP clientFor more information, see Microsoft Remote Desktopclients.

If you have difficulty connecting using RDP, see TroubleshootingRDP. If you can't connect toa Windows instance by using Remote Desktop, seeConnect to Windows VMs using the SAC.

To connect to the remote desktop of a Windows instance, use one of the followingprocedures.

IAP Desktop

IAP Desktop is a Windows application that lets you manage multiple Remote Desktopconnections to Windows VM instances. IAP Desktop connects to VM instancesby using Identity-Aware Proxy TCP forwardingand does not require VM instances to have a public IP address.

Before you connect by using IAP Desktop, make sure that thefollowing prerequisites are met:

  • You've configured your VPC toallow IAP traffic to your VM instance.
  • You've downloaded and installed IAP Desktop on your local computer.

To connect to a VM instance by using IAP Desktop, do the following:

  1. In IAP Desktop, select Profile>Add project.

  2. Enter the ID or name of your project, and click OK.

  3. In the Project Explorer window, right-click the VM instance youwant to connect to and select Connect.

    Connect to Windows VMs using RDP | Compute Engine Documentation | Google Cloud (2)

For more information about IAP Desktop, see the GitHub projectpage.

Remote Desktop Connection app

You can use the Microsoft Remote Desktop Connection app that is part ofWindows to connect to Windows instances.

Before you connect using the Microsoft Remote Desktop Connection app, makesure that one of the following prerequisites is met:

  • Your VM instance has a public IP address and your firewallrulesallow TCP ingress traffic from your client's public IP address tothe instance by using port 3389.
  • Your local network is connected to your VPC by usingCloud VPN orCloud Interconnectand your firewallrulesallow TCP ingress traffic from your client's private IP address tothe instance by using port 3389.

To connect with Microsoft Windows Remote Desktop, do the following:

  1. Create a Windows account andpasswordif you do not have one yet.

  2. To connect over the internet, use the external IP address.To connect by using Cloud VPN or Cloud Interconnect, use theinternal IP address.

    Identify the external and internal IP addresses of your Windows instanceby completing one of the following steps:

    • In the Google Cloud console, go to the VM instances page.

      Go to the VM instances page

    • By using the gcloud CLI, rungcloud compute instances list:

      gcloud compute instances list
  3. Open Microsoft Windows Remote Desktop Connection on your Windows machine.You can find the executable at %systemroot%\system32\mstsc.exe

    Connect to Windows VMs using RDP | Compute Engine Documentation | Google Cloud (3)

  4. In the Computer box, enter the IP address.

    If you've configured your instance to use a different port number forRDP, add it after the IP address, for example: 1.2.3.4:3389.

  5. Click Connect.

  6. Enter your username and password, and click OK.

    If you have forgotten your password, you canreset it.

Chrome Remote Desktop

Chrome Remote Desktopis a service that lets you remotely access anothercomputer by using a web browser.Chrome Remote Desktop works on Windows, macOS, and Linux and does not requirethe VM instance to have a public IP address.

Before you connect by using Chrome Remote Desktop, make sure that thefollowing prerequisites are met:

  • You've created a Windows account andpasswordon the VM instance.
  • You've installed the Chrome Remote Desktop service on the VMinstance.

To connect to a VM instance by using Chrome Remote Desktop, do thefollowing:

  1. On your local computer, go to theChrome Remote Desktop website.

  2. If you're not already signed in to Google, sign in with the same GoogleAccount that you used to set up the Chrome Remote Desktop service.

  3. Select the instance that you want to connect to.

  4. When you're prompted, enter the PIN that you created when installingthe Chrome Remote Desktop service, and click thearrow_forward arrow buttonto connect.

Other

You can connect to your Windows VM instances by using other RDP clients,such as clients developed for Android, iOS, Mac, and others. For a list ofofficially supported clients, see Microsoft Remote Desktopclients.

Before you connect, make sure that one of the following prerequisites ismet:

  • Your VM instance has a public IP address and yourfirewall rulesallow TCP ingress traffic from your client's public IP address tothe instance by using port 3389.
  • Your local network is connected to your VPC by usingVPN orCloud Interconnectand yourfirewall rulesallow TCP ingress traffic from your client's private IP address tothe instance by using port 3389.

To connect using other RDP clients, do the following:

  1. To connect over the internet, use the external IP address.To connect by using Cloud VPN or Cloud Interconnect, use theinternal IP address.

    Identify the external and internal IP addresses of your Windows instanceby completing one of the following steps:

    • In the Google Cloud console, go to the VM instances page.

      Go to the VM instances page

    • By using the gcloud CLI, rungcloud compute instances list:

      gcloud compute instances list
  2. Install the supported client according to the client's installationinstructions.

  3. Connect using the IP address of your instance, and authenticatewith your username and password for the instance.

If you have difficulty connecting using RDP, see theTroubleshooting RDP page. For information about RDP licensing, see the FAQ about Microsoft licenses.

Verify the RDP certificate

Verify the RDP certificate by viewing the serial port output from the initialboot of the VM or by using the appropriate PowerShell command from the SAC.

Serial port

  1. Verify the RDP certificate by viewing the output from serial port1during the initial boot of the Windows VM.

  2. Examine the output of serial port 1 during the initial boot of theWindows VM for the following:

    Serial port 1 (console) output for rdp-test......2021/03/31 15:53:58 GCEInstanceSetup: RDP certificate details: Subject: CN=rdp-test, Thumbprint: XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX......

PowerShell from the SAC

  1. Connect to the Windows SAC.

  2. Run the following PowerShell commands:

    # WinRM CertWrite-Host 'WinRM certificate details:'; Get-ChildItem 'Cert:\LocalMachine\My' | Where-Object { $_.Subject -like "CN=$env:COMPUTERNAME*" -and $_.NotAfter -gt $(Get-Date) -and $_.HasPrivateKey} | Select-Object Subject, Thumbprint | Format-List# RDP CertWrite-Host 'RDP certificate details:'; Get-ChildItem 'Cert:\LocalMachine\Remote Desktop\' | Where-Object { $_.Subject -like "CN=$env:COMPUTERNAME*" -and $_.NotAfter -gt $(Get-Date) -and $_.HasPrivateKey} | Select-Object Subject, Thumbprint | Format-List

    What's next

  • Learn how totransfer files to Windows VMs.

  • Learn how toConnect to Linux VMs.

Connect to Windows VMs using RDP  |  Compute Engine Documentation  |  Google Cloud (2024)

FAQs

How do I connect to GCP VM using RDP? ›

On your local computer, go to the Chrome Remote Desktop website. If you're not already signed in to Google, sign in with the same Google Account that you used to set up the Chrome Remote Desktop service. Select the instance that you want to connect to.

How to connect to VM using RDP? ›

Select the virtual machine from the list. At the beginning of the virtual machine page, select Connect. On the Connect to virtual machine page, select RDP, and then select the appropriate IP address and Port number. In most cases, the default IP address and port should be used.

How do I connect to a Windows instance in GCP? ›

In the GCP web console, navigate to the screen where you can create an instance. Bring up the menu to configure and create a new instance. Name the instance windows-iis-1 . Set the zone to your closest geographical location.

Which RDP port is used to remotely administer a cloud based Windows virtual machine? ›

The default port for RDP is TCP port 3389. A rule to permit RDP traffic may not be created automatically when you create your VM. If you do not have a rule that allows RDP traffic, create a Network Security Group rule. Allow TCP port 3389.

How do I connect to remotely using RDP? ›

Use Remote Desktop to connect to the PC you set up: On your local Windows PC: In the search box on the taskbar, type Remote Desktop Connection, and then select Remote Desktop Connection. In Remote Desktop Connection, type the name of the PC you want to connect to (from Step 1), and then select Connect.

What is the RDP button in the GCP console? ›

Once installed, customers need only click on the RDP button in the Google Developers Console to be taken directly to the remote desktop of their instance without the need to remember their Windows credentials or use an additional software client.

How to connect to VM through IP address? ›

Connect to VM - Azure portal

To connect to a VM using a specified private IP address, you make the connection from Bastion to the VM, not directly from the VM page. On your Bastion page, select Connect to open the Connect page. On the Bastion Connect page, for IP address, enter the private IP address of the target VM.

Which port does Windows Remote Access require to be open in GCP? ›

Note: The default port number for Windows RDP is 3389, however you can reconfigure this number. If you do, change the port number after tcp: in the "create rule" command to match.

How to access VM remotely? ›

Step 1: Enable remote access for a virtual machine

Locate and select the desired workload. Navigate to Manage Your Instances, and then use the slider to enable Remote Management. Above Manage Your Instances, navigate to Instances, and then select the desired instance.

What is the Remote Desktop Protocol RDP connection? ›

RDP Definition

Remote Desktop Protocol (RDP), a secure network communication protocol offered by Microsoft, allows users to execute remote operations on other computers. It facilitates secure information exchange between remotely connected machines over an encrypted communication channel. How secure is Windows RDP?

How do I access my GCP VM from my browser? ›

In the Google Cloud console, go to the VM instances page. In the list of VMs, click the arrow_drop_down drop-down next to the SSH button of the VM that you want to connect to. Click Open in browser window using provided private SSH key. The SSH-in-browser window opens.

Top Articles
The Next Steps After Your Homeowners Claim is Denied
Left foot accelerator | Disability Driving Instructors
Umbc Baseball Camp
AllHere, praised for creating LAUSD’s $6M AI chatbot, files for bankruptcy
Thor Majestic 23A Floor Plan
Walgreens Pharmqcy
Robot or human?
How Many Cc's Is A 96 Cubic Inch Engine
PRISMA Technik 7-10 Baden-Württemberg
Alpha Kenny Buddy - Songs, Events and Music Stats | Viberate.com
Tap Tap Run Coupon Codes
Athletic Squad With Poles Crossword
biBERK Business Insurance Provides Essential Insights on Liquor Store Risk Management and Insurance Considerations
Smokeland West Warwick
Wnem Radar
Charmeck Arrest Inquiry
Oro probablemente a duna Playa e nomber Oranjestad un 200 aña pasa, pero Playa su historia ta bay hopi mas aña atras
Tracking Your Shipments with Maher Terminal
Snow Rider 3D Unblocked Wtf
Dumb Money, la recensione: Paul Dano e quel film biografico sul caso GameStop
Chelactiv Max Cream
Swgoh Turn Meter Reduction Teams
Gayla Glenn Harris County Texas Update
Evil Dead Rise - Everything You Need To Know
Heart and Vascular Clinic in Monticello - North Memorial Health
Sorrento Gourmet Pizza Goshen Photos
Tire Plus Hunters Creek
Busted Mugshots Paducah Ky
Smartfind Express Login Broward
Mynahealthcare Login
Big Boobs Indian Photos
Solo Player Level 2K23
Ewg Eucerin
Gridwords Factoring 1 Answers Pdf
"Pure Onyx" by xxoom from Patreon | Kemono
Sedano's Supermarkets Expands to Orlando - Sedano's Supermarkets
Ducky Mcshweeney's Reviews
About Us | SEIL
Foolproof Module 6 Test Answers
Eleceed Mangaowl
2700 Yen To Usd
Mugshots Journal Star
Walmart Car Service Near Me
Arigreyfr
814-747-6702
Television Archive News Search Service
Darkglass Electronics The Exponent 500 Test
Killer Intelligence Center Download
Youravon Com Mi Cuenta
Accident On 40 East Today
Dayton Overdrive
Game Like Tales Of Androgyny
Latest Posts
Article information

Author: Rev. Leonie Wyman

Last Updated:

Views: 6033

Rating: 4.9 / 5 (59 voted)

Reviews: 82% of readers found this page helpful

Author information

Name: Rev. Leonie Wyman

Birthday: 1993-07-01

Address: Suite 763 6272 Lang Bypass, New Xochitlport, VT 72704-3308

Phone: +22014484519944

Job: Banking Officer

Hobby: Sailing, Gaming, Basketball, Calligraphy, Mycology, Astronomy, Juggling

Introduction: My name is Rev. Leonie Wyman, I am a colorful, tasty, splendid, fair, witty, gorgeous, splendid person who loves writing and wants to share my knowledge and understanding with you.