VMware Communities
novotny75
Contributor
Contributor

trying to connect to web server on mac from Windows VM

Hi,

I  amd running Mountain Lion Mac OS X and installed the latest Fusion 4.1.3 with a Windows XP VM. I installed the VMWare Tools and I have selected NAT as my network adapter. I can bring up IE and am able to go to http://www.google.com so I do have internet access.

On Mac OS X I do ifconfig and see:

lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384
    options=3<RXCSUM,TXCSUM>
    inet6 fe80::1%lo0 prefixlen 64 scopeid 0x1
    inet 127.0.0.1 netmask 0xff000000
    inet6 ::1 prefixlen 128
gif0: flags=8010<POINTOPOINT,MULTICAST> mtu 1280
stf0: flags=0<> mtu 1280
en0: flags=8863<UP,BROADCAST,SMART,RUNNING,SIMPLEX,MULTICAST> mtu 1500
    options=2b<RXCSUM,TXCSUM,VLAN_HWTAGGING,TSO4>
    ether 3c:07:54:3f:a8:d4
    media: autoselect (none)
    status: inactive
fw0: flags=8863<UP,BROADCAST,SMART,RUNNING,SIMPLEX,MULTICAST> mtu 4078
    lladdr a4:b1:97:ff:fe:9b:7a:0e
    media: autoselect <full-duplex>
    status: inactive
en1: flags=8863<UP,BROADCAST,SMART,RUNNING,SIMPLEX,MULTICAST> mtu 1500
    ether b8:8d:12:2f:a9:46
    inet6 fe80::ba8d:12ff:fe2f:a946%en1 prefixlen 64 scopeid 0x6
    inet 10.1.12.107 netmask 0xffffff00 broadcast 10.1.12.255
    media: autoselect
    status: active
vboxnet0: flags=8842<BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
    ether 0a:00:27:00:00:00
p2p0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 2304
    ether 0a:8d:12:2f:a9:46
    media: autoselect
    status: inactive
vmnet1: flags=8863<UP,BROADCAST,SMART,RUNNING,SIMPLEX,MULTICAST> mtu 1500
    ether 00:50:56:c0:00:01
    inet 192.168.1.1 netmask 0xffffff00 broadcast 192.168.1.255
vmnet8: flags=8863<UP,BROADCAST,SMART,RUNNING,SIMPLEX,MULTICAST> mtu 1500
    ether 00:50:56:c0:00:08
    inet 192.168.201.1 netmask 0xffffff00 broadcast 192.168.201.255

On Windows when I do ipconfig I get:

Connection-specifc DNS Suffix . : localdomain

IP Address : 192.168.201.128

Subnet Mask : 255.255.255.0

Default Gateway: 192.168.201.2

I'm running a web server under Mac OS X which I can connect to from Safari using http://localhost:8080

However, I try connecting using IE on the Windows VM and can't seem to connect at all.

I've tried the following:

http://192.168.201.128:8080

http://192.168.201.2:8080

http://192.168.201.1:8080

None of these work for me.... and I'm not running any kind of firewall on my Mac.

Any help is greatly appreciated, Jason

0 Kudos
8 Replies
WoodyZ
Immortal
Immortal

From the Guest can you successfully ping 192.168.201.1 ?

0 Kudos
novotny75
Contributor
Contributor

Yes, I can ping 192.168.201.1 and 192.168.201.2 from the Guest

0 Kudos
novotny75
Contributor
Contributor

Yes, I can ping 192.168.201.1 and 192.168.201.2 successfully

0 Kudos
WoodyZ
Immortal
Immortal

What happens if you from the Guest in a Browser use just: http://192.168.201.1

0 Kudos
novotny75
Contributor
Contributor

I get a 404 that the page cannot be dispalyed because it is unavailable. Same with http://192.168.201.2:8080
as well.

0 Kudos
WoodyZ
Immortal
Immortal

Well based on the fact that the Virtual Machine has normal basic Internet/Network Connectivity and you can ping the Host then this is not a VMware Fusion issue.  If you want to archive (compress) and attach your "/etc/apache2/httpd.conf" file to a reply I'll test it on my system.  BTW I have no problems accessing the Web Server on the Host from the Guest whether I configure the Virtual Machine's Network to be Bridge, NAT or Host Only and that's with two firewalls running on the Host.

0 Kudos
webfrasse
Enthusiast
Enthusiast

Hi!

You mac's IP is not 192....

en1: flags=8863<UP,BROADCAST,SMART,RUNNING,SIMPLEX,MULTICAST> mtu 1500
    ether b8:8d:12:2f:a9:46
    inet6 fe80::ba8d:12ff:fe2f:a946%en1 prefixlen 64 scopeid 0x6
    inet 10.1.12.107 netmask 0xffffff00 broadcast 10.1.12.255
    media: autoselect
    status: active

You'r Mac has the 10-address in bold above.

What you're pinging is the virtual network that Fusion configured and it's gateway.

Maybe better if you used Host-only networking. As it is now your VM and your Mac are on different, non-routable, networks

/Mikael

0 Kudos
WoodyZ
Immortal
Immortal

webfrasse wrote:


You mac's IP is not 192....

en1: flags=8863<UP,BROADCAST,SMART,RUNNING,SIMPLEX,MULTICAST> mtu 1500
    ether b8:8d:12:2f:a9:46
    inet6 fe80::ba8d:12ff:fe2f:a946%en1 prefixlen 64 scopeid 0x6
    inet 10.1.12.107 netmask 0xffffff00 broadcast 10.1.12.255
    media: autoselect
    status: active

You'r Mac has the 10-address in bold above.

First most all Intel Based Mac's are mutihomed and the ones that are not are once VMware Fusion is installed and running as evident by en0, en1, vmnet1 and vmnet8 in his ifconfig output and the vmnet8 IP Address is 192.168.201.1.  Granted his overall understanding of networking is a bit lacking however the issue came down to him not properly configuring Tomcat as confirmed in his reply Re: how do i access Tomcat from vmware.

As it is now your VM and your Mac are on different, non-routable, networks

I have no problems accessing a Web Server on my Host by a Guest regardless of what type of Network Adapter I configure for the Guest so it's really a moot issue and all that is required is to have everything properly configured to begin with! Smiley Wink

0 Kudos