fir3net
PPS-Firenetbanner-780.5x190-30-03-17

ESX - ViClient Cannot connect to host

Issue

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

              Cannot connect to host my.esx.host.com: 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.

Solution

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

RDonato

R Donato

Rick Donato is the Founder and Chief Editor of Fir3net.com. He currently works as a Principal Network Security Engineer and has a keen interest in automation and the cloud.

You can find Rick on Twitter @f3lix001