RDP Connection Timeout

jlarionov's Avatar

jlarionov

08 Sep, 2023 06:21 PM

We used the instructions on Accessing Windows build worker via Remote Desktop to enable RDP access to a Visual Studio 2019 build worker VM.

However when we attempt to connect to the IP address displayed in the build output, the connection times out and we never get a credential prompt. We are unable to ping the host or reach its 3389 port:

❯ Test-NetConnection -ComputerName 67.225.165.215 -Port 3389
WARNING: TCP connect to (67.225.165.215 : 3389) failed
WARNING: Ping to 67.225.165.215 failed with status: TimedOut

This happens with every build worker VM, all using different IP addresses.

  1. Support Staff 1 Posted by Feodor Fitsner on 08 Sep, 2023 06:42 PM

    Feodor Fitsner's Avatar

    3389 won't work. There is a redirection to 3389. Use port displayed by a script.

  2. 2 Posted by jlarionov on 08 Sep, 2023 06:59 PM

    jlarionov's Avatar

    The only port displayed in the output is port 3389.

  3. 3 Posted by jlarionov on 08 Sep, 2023 07:08 PM

    jlarionov's Avatar

    We just realized we're using $nonat = $true before enabling RDP. Looks like we needed to use that previously but it isn't working now. I've removed it and now we do get a unique port number that we can successfully connect to.

    I can't find any docs on $nonat. Can you share details on what that variable does and when it should be used?

  4. Support Staff 4 Posted by Feodor Fitsner on 08 Sep, 2023 07:10 PM

    Feodor Fitsner's Avatar
  5. Feodor Fitsner closed this discussion on 08 Nov, 2023 09:03 PM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac

 

06 Jun, 2024 02:12 PM
06 Jun, 2024 03:49 AM
04 Jun, 2024 03:53 AM
30 May, 2024 04:03 PM
27 May, 2024 02:06 AM
20 May, 2024 09:52 PM