By default, the vSphere Client uses HTTP port 80 and HTTPS port 443 to communicate with ESX/ESXi hosts. You can change these ports with these methods:
proxy.xml
on the host. To change the ports configured in proxy.xml
:
ESX
/etc/vmware/hostd/
directory. proxy.xml
file with a text editor, and add these tags under the <ConfigRoot>
tag: <httpPort>xx</httpPort>
<httpsPort>xxx</httpsPort>
xx
is the port you want to use for HTTP traffic and xxx
is the port you want to use for HTTPS traffic.<httpPort>8080</httpPort>
<httpsPort>8081</httpsPort>
service mgmt-vmware restart
ESXi
proxy.xml
file to edit: vifs --server <hostname<em>> --username <username<em>> --get /host/proxy.xml <local_directory_path<em>>/proxy.xml
vifs --server <hostname<em>> --username <username<em>> --get /host/proxy.xml <local_directory_path<em>>\proxy.xml
proxy.xml
file with a text editor, and add these tags under the <ConfigRoot>
tag:<httpPort>xx</httpPort>
<httpsPort>xxx</httpsPort>
xx
is the port you want to use for HTTP traffic and xxx
is the port you want to use for HTTPS traffic.<httpPort>8080</httpPort>
<httpsPort>8081</httpsPort>
vifs
command to place the proxy.xml
file back on the ESXi host: vifs --server <hostname> --username <username> --put <local_directory_path>/proxy.xml /host/proxy.xml
vifs --server <hostname> --username <username> --put <local_directory_path>\proxy.xml /host/proxy.xml
To change the ports configured for the vSphere Client in the client configuration file:
VpxClient.exe.config
client configuration file with a text editor. By default, this file is located at C:\Program Files\VMware\Infrastructure\Virtual Infrastructure Client\Launcher\
<add key = "protocolports" value = "https:443;http:80:" />
<add key = "protocolports" value = "https:8081;http:8080" />
As an alternative to editing the vSphere Client configuration file, you can specify the HTTPS port on the login screen of the vSphere Client by entering <servername>:<https_port_number> in the IP address / Name text box.
Note: For more information about TCP/UDP ports, see TCP and UDP Ports required to access vCenter Server, ESX hosts, and other network components (1012382).