Connecting to server on vmware host from a guest OS

2

1

I'm running VMWare Fusion on Mac OS X (Snow Leopard) with a Windows 7 guest OS. They are networked using a bridge.

I'm running a couple of local development web servers on Mac OS X and I want to access them from Windows for testing.

The IP address of the host OS is 192.168.0.2. I can ping this IP address from the guest. If I enable the Mac OS X web sharing I can see the example site from the guest.

I can't access my local servers on ports 2060 or 8000. Both the Windows and Mac OS X firewalls are off.

(i.e. http://192.168.0.2/ works but http://192.168.0.2:2060 doesn't - I've tried with both Firefox and IE.)

fuzzyman

Posted 2010-09-04T11:56:32.730

Reputation: 121

Are the development servers definitely bound to *:2060 and *:8000, or just 127.0.0.1:2060 & 127.0.0.1:8000? It sounds like you have no resolution/communication problem between the two hosts. I'd point the finger at the dev servers themselves since you stated you have no firewalls. – Mark Embling – 2010-09-04T12:51:19.637

Ah, that sounds like it could well be the problem. Dammit - thanks. One is the Django devserver (so I guess I can fix that myself) the other is a server specifically for Silverlight projects (called Chiron) that may not be so easy to fix. I'll probably have to setup another server for it. – fuzzyman – 2010-09-04T13:15:35.707

I've had better luck with this sort of question on ServerFault.com. – Daryl Spitzer – 2010-09-07T14:49:58.163

Answers

1

This is one of the first search results on google but I noticed there were no answers. Hope my answer might help someone in the future:

For me, my solution was running my webserver (in my case, Jboss) to be accessible through IP address. I just needed to add a parameter for when starting up my webserver on the host OS:

. run.sh

vs

. run.sh -b 0.0.0.0

Sonny

Posted 2010-09-04T11:56:32.730

Reputation: 113