VMware Communities
OsmanU
Contributor
Contributor
Jump to solution

Upgraded to Fusion 4 and now I can't access web server on my host Mac

I am running OSX 10.6.8, and I am hosting a VM running windows XP, using NAT Networking. I have a web server running on the mac which I need to access from the hosted VM. I used to be able to just use the IP address of the gateway in the VM to get to the web server but this doesn't seem to work anymore. If I put in the external IP address of the mac this seems to work, but I don't have a static IP so this is a pain to update every time.

Any help would be appreciated!

Thanks

Tags (2)
0 Kudos
1 Solution

Accepted Solutions
WoodyZ
Immortal
Immortal
Jump to solution

While in some cases the Gateway IP Address works, nonetheless IMO that is improper usage and one should be using the actual IP Address of the Host's VMware NAT Virtual Ethernet Adapter IP Address not the Gateway IP Address.

So in a Terminal execute the following command:

ifconfig | grep -A 3 vmnet8

Then use the IP Address stated after "inet" in the output.

Example on my system:

Last login: Mon Jan 16 12:43:00 on ttys000
Computer:~ WKZ$ ifconfig | grep -A 3 vmnet8
vmnet8: flags=8863<UP,BROADCAST,SMART,RUNNING,SIMPLEX,MULTICAST> mtu 1500
    ether 00:50:56:c0:00:08
    inet 172.16.198.1 netmask 0xffffff00 broadcast 172.16.198.255
Computer:~ WKZ$

So I'd use 172.16.198.1 from the Guest or use the Hostname of the Mac (without the .local) after adding 172.16.198.1 and the Mac's Hostname to the Guest's hosts file.

Message was edited by: WoodyZ - Originally posted: Jan 16, 2012 12:52 PM

View solution in original post

0 Kudos
2 Replies
WoodyZ
Immortal
Immortal
Jump to solution

While in some cases the Gateway IP Address works, nonetheless IMO that is improper usage and one should be using the actual IP Address of the Host's VMware NAT Virtual Ethernet Adapter IP Address not the Gateway IP Address.

So in a Terminal execute the following command:

ifconfig | grep -A 3 vmnet8

Then use the IP Address stated after "inet" in the output.

Example on my system:

Last login: Mon Jan 16 12:43:00 on ttys000
Computer:~ WKZ$ ifconfig | grep -A 3 vmnet8
vmnet8: flags=8863<UP,BROADCAST,SMART,RUNNING,SIMPLEX,MULTICAST> mtu 1500
    ether 00:50:56:c0:00:08
    inet 172.16.198.1 netmask 0xffffff00 broadcast 172.16.198.255
Computer:~ WKZ$

So I'd use 172.16.198.1 from the Guest or use the Hostname of the Mac (without the .local) after adding 172.16.198.1 and the Mac's Hostname to the Guest's hosts file.

Message was edited by: WoodyZ - Originally posted: Jan 16, 2012 12:52 PM

0 Kudos
OsmanU
Contributor
Contributor
Jump to solution

Thanks, using the address of the vmnet8 interface worked.

0 Kudos