I'm having trouble accessing a port on my OSX host from a vm.
I'm using NAT in VMware fusion. In my (OSX host) hosts file, I have the ip address for vmnet8 mapped to 'mac'.
From my vm, I can 'ssh user@mac' and it works as expected: I am logged into the host. So, my hosts file is working.
I have a tunnel from my OSX host to an Oracle server at work. I can use the tunnel (localhost:6004) from the host no problem. However if I try to use the name 'mac' instead of 'localhost' this does not work. As a result, I am not able to access the tunnel from the vm, either. (I can't use the localhost name from the vm, obviously).
Why isn't the tunnel accessible using 'mac', while ssh works fine?