Connecting to servers running on host

Discussions related to using VirtualBox on Mac OS X hosts.
Post Reply
enduser
Posts: 1
Joined: 16. Feb 2010, 01:20
Primary OS: Mac OS X Leopard
VBox Version: OSE Debian
Guest OSses: Windows 7

Connecting to servers running on host

Post by enduser »

Hi.

I'm using VirtualBox to run Windows 7 on OS X 10.6.2 and I'm trying to make certain applications in Windows 7 connect to servers that are actually running on the same machine but in OS X.

Code: Select all

OS X --- Server (listens on a certain port let's say 1000)

OS X --- VirtualBox
OS X --- VirtualBox --- Windows 7
OS X --- VirtualBox --- Windows 7 --- Application (tries to connect to Server at 127.0.0.1:1000)
Hope that makes sense. :)

I can't seem to connect to these servers which are running in OS X.
Is this because in Windows 7, when I try to connect to 127.0.0.1 or localhost, it can't see past itself? I.e. it won't send/receive anything to/from OS X.
Is there any way to actually give OS X another, more particular IP that makes VirtualBox/Windows 7 think it's a remote computer?

The reason I'm so general about it is that I have tried a few different applications like plasq Wormhole, AudioPort Universal, Hex Rays IDA Pro, etc.

If anyone has an idea on how to get this stuff working I would be very grateful. Thanks!
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: Connecting to servers running on host

Post by Perryg »

You will need to be using either Bridged (if you have a router) or host-only for the guest network.
You can not connect to localhost (127.0.0.1) of another computer because that is in fact the localhost. Meaning that every computer has one and it is local only.
Once you have set it up then you would connect to the host machine from the guest using the IP address of the host-only connection of the host.
Post Reply