ESX - ViClient Cannot connect to host


When trying to connect to the console within the VI Client you receive the following error,

              Cannot connect to host no connection could be made because the target machine actively refused it

In this example you have the required ports open on both your firewall and your ESX box. You see the traffic on tcp 902 going to your VMware server but your server is closing the connection.


This is a known bug when trying to access the console of a ESX hosted VM across multiple networks.
To resolve the issue add the following to  /etc/vmware/config

vmauthd.server.alwaysProxy = "TRUE"

I believe that you also may need to add this to your advanced options in the VI Client GUI to survive a reboot, but I still need to confirm this......
Has anyone else already tried this ???

About the Author


R Donato

Rick Donato is the Founder and Chief Editor of He currently works as an SDN/NFV Solutions Architect and has a keen interest in automation and the cloud.

You can find Rick on Twitter @f3lix001