RDP Connection Timeout

jlarionov's Avatar


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 -Port 3389
WARNING: TCP connect to ( : 3389) failed
WARNING: Ping to 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

Reply to this discussion

Internal reply

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

Attaching KB article:


Attached Files

You can attach files up to 10MB

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.

Keyboard shortcuts


? 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


13 Sep, 2023 06:05 AM
10 Sep, 2023 03:43 PM
09 Sep, 2023 05:53 PM
08 Sep, 2023 07:10 PM
31 Aug, 2023 07:59 PM
13 Aug, 2023 04:55 AM