search
cancel
Search
'ERR_CONNECTION_REFUSED' while opening the Virtual Machine Console
book
Article ID: 345436
calendar_today
Updated On:
Products
VMware vCenter Server
Show More
Show Less
Issue/Introduction
Symptoms:
When trying to launch a Virtual Machine Console from the vSphere Web Client, you see the error:
ERR_CONNECTION_REFUSED
The vSphere Web Client 6.0 is installed using a custom port.
Environment
VMware vCenter Server 6.0.x
Cause
This issue occurs because of the redirect in the vSphere Web Client server which points to port 9443 instead of the custom port.
Resolution
To resolve the issue, update the
webclient.poperties
to point to the custom port used during installation.
For Windows vSphere Web client:
On the vSphere Web Client server navigate to:
C:\ProgramData\VMware\vCenterServer\cfg\vsphere-client\
Create a backup of the
webclient.properties
file.
Open the
webclient.properties
using a text editor.
Edit the
#html.console.port =
to the port used during installation and remove the #.
For example:
html.console.port = 9445
Save the changes to file and exit.
Restart the VMware vSphere Web Client service. For more information, see
Stop, Start or Restart Services on vCenter Server 6.x or Higher
.
For the vCenter Server Appliance:
Open a Console connection to the vCenter Server Appliance.
Run this command to enable the shell:
shell.set --enabled true
Run this command to launch the shell:
shell
Navigate to
/etc/vmware/vsphere-client/
.
Create a backup of the
webclient.properties
with this command:
cp webclient.properties webclient.properties.bak
Open the file with a text editor using this command:
vi webclient.properties
Edit the
#html.console.port =
to the port used during installation and remove the #.
For example:
html.console.port = 9445
Save the changes to file and exit.
Restart the VMware vSphere Web Client service. For more information, see
Stopping, Starting or Restarting VMware vCenter Server Appliance 6.x & above services
.
Additional Information
Stop, Start or Restart Services on vCenter Server 6.x or Higher
Stopping, Starting or Restarting VMware vCenter Server Appliance 6.x & above services
Feedback
thumb_up
Yes
thumb_down
No