Unable to Connect to the MKS: Fixing the VMRC Console

By Ahmet Tolga KAYA 8 min read
Unable to Connect to the MKS: Fixing the VMRC Console

Quick answer: Unable to connect to the MKS means the console client (VMRC or the vSphere Client) could not open the mouse-keyboard-screen session to the virtual machine. The usual causes are TCP port 902 blocked between your PC and the ESXi host or vCenter, broken DNS for the host FQDN, or an outdated VMware Remote Console that sends the old ticket type.

Unable to connect to the MKS is one of those errors that always shows up at the worst moment: a VM has hung, you click Launch Remote Console, and instead of a login screen you get a red dialog. The VM itself is usually fine. What failed is the console connection between your workstation and the ESXi host that runs the VM. I have learned to stop clicking Retry and read the rest of the message, because the text after the colon tells you exactly which part of the chain broke. Below is the order I work through it on vSphere 7 and 8.

Unable to connect to the MKS in vSphere: how to fix the VMRC and web console

What Unable to Connect to the MKS Actually Means

MKS stands for mouse, keyboard and screen. When you open a console, vCenter hands your client a ticket, and the client then connects to the ESXi host that owns the VM to stream the screen and send your input. Broadcom documents the connection path in KB 336884: the user connects to vCenter on TCP/UDP 902, and when the console is redirected to the host, the user connects to the ESXi host on TCP/UDP 902. So the console depends on three things working at the same time: name resolution, port 902 from your PC, and a client that speaks the ticket format your vCenter expects.

The most common variant I see looks like this:

Unable to connect to the MKS: Could not connect to pipe \\.\pipe\vmware-authdpipe within retry period.
Unable to connect to the MKS error: could not connect to pipe vmware-authdpipe, port 902 refused in the VMRC log

The pipe name, vmware-authdpipe, is misleading. VMRC first tries a TCP connection to port 902 on the host, and only when that fails does it fall back to a local pipe, which of course does not exist on your PC. The real error is a few lines earlier in the VMRC log.

Why Does VMRC Say Unable to Connect to the MKS?

These are the variants with a documented cause. I keep this table in my notes because it saves me from guessing:

Error text after “Unable to connect to the MKS”Documented causeFix
Could not connect to pipe \\.\pipe\vmware-authdpipePort 902 blocked between client and vCenter or ESXi (different subnet, firewall), or the host FQDN resolves to a wrong addressOpen TCP/UDP 902, fix forward and reverse DNS (Broadcom KB 336884)
A specified parameter was not correct: ticketTypeOutdated VMware Remote Console after upgrading to vSphere 8; vCenter 8.0 dropped the old mks ticket type in favor of webmksUpgrade VMRC, set pref.preferWebMKS (Broadcom KB 313645)
Login (username/password) incorrectReported by Dell for VxRail as a DNS issue: the client cannot resolve the ESXi host name; time sync also mattersAdd DNS records for the hosts, check time sync (Dell KB 000027499)

If you see a different wording, search the exact string on the Broadcom knowledge base. I would rather spend two minutes finding the right article than restart services at random on a production host.

How Do I Fix Unable to Connect to the MKS in vSphere?

I run the checks below from the same workstation where the console fails, because that is where the connection starts. The order matters: the first two checks take seconds and explain most cases.

Unable to connect to the MKS fix flowchart: error text, DNS, port 902, VMRC version and preferences

Step 1: Read the VMRC log, not just the dialog

On Windows, VMRC writes its logs to %TEMP%\vmware-<username>\ as vmware-vmrc-<pid>.log. Open the newest one and search for Cannot connect to server or ticketType:

Get-ChildItem "$env:TEMP\vmware-$env:USERNAME" -Filter 'vmware-vmrc-*.log' |
    Sort-Object LastWriteTime -Descending | Select-Object -First 1 |
    Select-String -Pattern 'Cannot connect to server|ticketType|DlgUI'Code language: JavaScript (javascript)

A line like Cannot connect to server esxi01.lab.local:902 ... actively refused it means you are in Step 2 and Step 3 territory. A line with ticketType sends you straight to Step 4.

Step 2: Check DNS for every ESXi host and vCenter

Broadcom’s note in KB 336884 is clear: if hosts were added to vCenter by DNS name, both the client and vCenter must resolve vCenter and the ESXi hosts, forward and reverse. The console ticket contains the host name, so your PC must be able to resolve it even if you never type it anywhere. Test from your workstation:

Resolve-DnsName esxi01.lab.local
Resolve-DnsName 10.0.20.11      # reverse lookup, should return the same FQDN
nslookup vcsa01.lab.localCode language: CSS (css)

Run the same nslookup from the vCenter appliance shell as well. A stale A record pointing to an old IP address gives you exactly the refused connection in the log. Dell’s VxRail article suggests a hosts file entry in C:\Windows\System32\drivers\etc\hosts as a quick test; I use it only to prove the theory, then fix the record in DNS so the next admin does not hit the same error.

Step 3: Test port 902 from your PC

This is the check that explains most of the unable to connect to the MKS tickets I have seen from users on a separate admin VLAN or VPN. Test-NetConnection is built into Windows PowerShell and answers the question in one line:

Test-NetConnection esxi01.lab.local -Port 902
Test-NetConnection vcsa01.lab.local -Port 902Code language: CSS (css)

If TcpTestSucceeded is False for the host, the firewall between your subnet and the ESXi management network is dropping 902. Ask for TCP and UDP 902 from the admin subnet to vCenter and to every ESXi host in the cluster, not only the one in front of you, because vMotion and DRS will move the VM to another host next week. If the host itself is disconnected in vCenter, fix that first; my guide on ESXi host not responding in vCenter covers that case.

Step 4: Update VMRC and fix the ticketType preference

If the log says ticketType, the problem is the client. According to Broadcom KB 313645, vCenter Server ended support for the older mks ticket type in 8.0.0 and uses the webmks format instead, so an old VMware Remote Console fails after a vSphere 7 to 8 upgrade. First install the current VMRC. If it still fails, edit the VMRC preferences file (on Windows %APPDATA%\VMware\preferences.ini) with VMRC closed and add, for vCenter 8.0.x:

pref.preferWebMKS = "TRUE"
pref.preferWebRemoteDevice = "TRUE"Code language: JavaScript (javascript)

For vCenter 7.0.x the same article says to use legacy mode, so the values are "FALSE". If you manage both versions from one laptop, this setting is per user, so I keep a note of which value I set; it is an easy thing to forget when the error comes back after you connect to the older environment. On macOS and Linux the file lives in the paths listed in the KB.

Step 5: Compare the web console with VMRC

When VMRC fails, I open the same VM with Launch Web Console in the vSphere Client. If the web console works and VMRC does not, the issue is on the client side (VMRC version, preferences or port 902 from that PC). If both fail for every VM on one host, look at the host and vCenter instead. A vCenter that is itself unhealthy can produce strange console behaviour too; see vCenter no healthy upstream if the vSphere Client is also misbehaving.

How to Verify Unable to Connect to the MKS Is Fixed

After the DNS or firewall change, close every VMRC window, then repeat the two tests and open the console again:

Resolve-DnsName esxi01.lab.local | Select-Object Name, IPAddress
Test-NetConnection esxi01.lab.local -Port 902 | Select-Object TcpTestSucceededCode language: JavaScript (javascript)
Unable to connect to the MKS fixed: DNS resolves and Test-NetConnection to port 902 succeeds

A healthy result is a correct IP address, TcpTestSucceeded : True, and a console that opens straight to the guest screen. If the console works for one host but unable to connect to the MKS returns when the VM moves to another host, you have a DNS record or firewall rule that only covers part of the cluster.

How to Prevent VMRC Console Not Connecting Again

  • Allow TCP/UDP 902 from every admin subnet and VPN pool to vCenter and all ESXi hosts, and document it with the cluster.
  • Create forward and reverse DNS records for every ESXi host before adding it to vCenter, and remove old records when you re-IP a host.
  • Keep NTP consistent between vCenter and the hosts; Dell lists time sync as part of the fix for the login variant.
  • Update VMware Remote Console on admin workstations as part of every vSphere upgrade, not after users complain.

I keep this VMware Remote Console November 2026 checklist next to my vSphere upgrade notes. When the console breaks right after maintenance, it is almost always DNS, port 902 or an old VMRC, and checking those three in order turns unable to connect to the MKS into a five-minute fix. If a stuck console was the reason you went looking at the VM in the first place, also check for snapshots that need attention: virtual machine disks consolidation is needed.

Unable to Connect to the MKS: FAQ

What does unable to connect to the MKS mean in vSphere?

It means the console client could not open the mouse, keyboard and screen session to the virtual machine on its ESXi host. The VM keeps running; only the console connection failed. The text after the colon shows which part failed.

Which port does the VM console need?

Broadcom KB 336884 lists TCP/UDP 902 from the user to vCenter and from the user to the ESXi host when the console is redirected to the host. A firewall blocking 902 between subnets is a common cause.

How do I fix the ticketType error after upgrading to vSphere 8?

Upgrade VMware Remote Console to the latest version. If it still fails, add pref.preferWebMKS = “TRUE” and pref.preferWebRemoteDevice = “TRUE” to the VMRC preferences file, as described in Broadcom KB 313645.

Why does the console fail with could not connect to pipe vmware-authdpipe?

VMRC falls back to the local vmware-authdpipe pipe only after the TCP connection to port 902 fails, so the pipe message hides a network or DNS problem. Check name resolution and port 902 from your PC.

Why is the VMRC console not connecting while the web console works?

Then the problem is on the client side: an outdated VMRC, a wrong preferWebMKS value for your vCenter version, or port 902 blocked from that workstation. Update VMRC and test port 902 with Test-NetConnection.

References

Broadcom: Error: Unable to Connect to the MKS while Connecting to Remote Console (KB 336884)

Broadcom: VMRC Console Error “Unable to connect to the MKS: A specified parameter was not correct: ticketType” (KB 313645)

Dell: VxRail: Unable to connect to the MKS Login (username or password) incorrect (KB 000027499)

Microsoft Learn: Test-NetConnection

Ahmet Tolga KAYA

Systems Engineer and Technical Writer focused on Windows, Microsoft technologies, infrastructure, cybersecurity, automation, and platform reliability.