i have a server with ESXi in my local network. i can connect to it via vSphere from my local network but can't connect from internet. Some people http://www.logicalsolutions.co.nz/connect-vsphere-client-externally/ achived by port forwarding so did i.
ESXi settings
ip 192.168.100.118
mask 255.255.255.0
gateway 192.168.100.1
Router settings
incoming port 443 forwarded to 443 of server 192.168.100.118 (my ESXi)
incoming port 902 forwarded to 902 of server 192.168.100.118 (my ESXi)
vSphere "public ip":port
still no connection.
So i thought if the problem was with router and forwarded some port to my local sqlserver port. It works
Maybe there are some settings where can i enable public access to ESXi.
I made some work-around to make it be possible with vcenter server (except for the consoles to the VMs):
I configured my local computer to identify itself as "vcenter-server-name" and "vcenter-server-name.full.qualified.domain.name" in linux it is basically add this names to the
hostsfile near the local address:I created a tunnel to the vcenter server via a host in the remote network that I can ssh to. the sudo is because of using local 443 port:
sudo ssh [email protected] -L 443:vcenter-server-name:443after these steps, I have had access to all the links and JS/watsnot that used FQDN.
In case the ESXi host recognizes itself only by its IP address and does not have a domain name, you won't be able to access it.