I faced this issue too, but in a VirtualBox environment, so to solve it we need to set the IP address to be in the same LAN segment; for example:
On my host machine, I open cmd and type ipconfig. I get 100.2.2.1 (for example).
So in the virtual machine we must set the VM's address in /etc/hosts to a value like 100.2.2.3, take a look in the final number, and bounce the virtual machine, but before start up the virtual machine configure the network in the settings of the virtual machine, so we need to set the network adapter in bridge connection.
All of this is in a Solaris environment.