Pick of the Week - Nov 10 [Show all picks]
Path Finder 5 - A feature-laden Finder replacement
Submit Hint Search The Forums LinksStatsPollsFAQHeadlinesRSS
12,000 hints and counting!

10.4: Networking between a Parallels VM and OS X Apps
I regularly use Parallels to test web sites on IE 6. Most of the time, I have those sites running locally on my Mac, using either Apache or Tomcat on OSX. I've had trouble trying to correctly address the server running on OS X from within a Windows app, until I found this way to ease my life.

Parallels comes with a network driver that adds two network interfaces, with one of them being used for shared networking. It provides DHCP services to the virtual machine, but the Mac side of it gets a dynamic address as well. However, it's better to set this to "DHCP with manual address" on OS X, choosing an IP address from the network that you've assigned to NAT in the Parallels application. That way IE running on Windows can easily find the right server to connect to.

Read on for the detailed explanation...

Open Parallels preferences, go to the Network tab, and make sure that the IP range entered for shared networking leaves out some numbers. For instance, I've used 10.211.55.10 - 10.211.55.254 for DHCP, leaving the numbers from 1 to 9 untouched. Make sure the network mask is set to 255.255.255.0

Open the OS X network preferences, choose the Parallels NAT adapter and set it to 'DHCP with manual address.' Use any adress from the free ones above, but not the "1". I've set the Mac to use 10.211.55.5, for example.

Start the Windows VM and edit the hosts file. (That probably depends on the version of Windows that you're using; mine is under C:WINDOWSsystem32etcdrivers). Add a line containing your Mac's IP from above, and a name of your liking. I've used 10.211.55.5 mbp.

Start IE or any other networking app, and using that given name will get you straight to your Mac's IP interface, ie. http://mbp:8000/ gives me my local instance of Tomcat. Just like that, I can get to my web sites being served on OS X from a browser running within a virtual machine. Hope that helps!
    •    
  • Currently 0.00 / 5
  • 1
  • 2
  • 3
  • 4
  • 5
  (0 votes cast)
 
[12,825 views]  

10.4: Networking between a Parallels VM and OS X | 7 comments | Create New Account
Click here to return to the '10.4: Networking between a Parallels VM and OS X' hint
The following comments are owned by whomever posted them. This site is not responsible for what they say.
10.4: Networking between a Parallels VM and OS X
Authored by: etresoft on Tue, Aug 21 2007 at 7:46AM PDT
Or just install Bonjour on the Windows side...

[ Reply to This | # ]
10.4: Networking between a Parallels VM and OS X
Authored by: Coumerelli on Tue, Aug 21 2007 at 7:50AM PDT
I really hate to be a hater, but I do this frequently by navigating to my-computer-name.local/~user

and it opens up the index file in my user's site directory. Leave the ~user off and it will go to the computer's site.

Points, though, for giving details about IP addressing for those who struggle with it.

---
"The best way to accelerate a PC is 9.8 m/s2"

[ Reply to This | # ]
10.4: Networking between a Parallels VM and OS X
Authored by: stewarsh on Tue, Aug 21 2007 at 9:27AM PDT
You can also just use Bridged networking which will have Parallels pull an additional IP from your LAN's DHCP server that is separate from OS X, then you can simply use the IP assigned to your mac to connect.

If you require such connections frequently, and have control of your network(i.e. a home router) you can configure the router to always give the same IP OS X and Parallels via the MAC(media access controller) address. Then you always know what the IPs are(i.e. 192.168.1.1 for OS X and 1.2 for Windows).

[ Reply to This | # ]
10.4: Networking between a Parallels VM and OS X
Authored by: taxi on Wed, Aug 22 2007 at 12:54AM PDT
I've been noticing some interesting issues with doing Bridged networking on a WPA network - occasionally, my MBP decides "the network has been compromised" and shuts down.

I'm fairly sure this has only happened when I've had one or other of the virtualisation products available running.

[ Reply to This | # ]
10.4: Networking between a Parallels VM and OS X
Authored by: rbfigueira on Wed, Sep 5 2007 at 1:03AM PDT
Hi,

I need to use Parallels to test web sites on Safari. My websites are in my Windows VM built using asp.net. I have followed that configuration but did not work for me.

In my Windows VM I have the IP 10.211.55.10.
My Mac has the IP 10.211.55.5.

When I do in the safari (MAC) : http://10.211.55.10/mysite ... I wait .. wait and don't find the site.

What I am missing?

Note: I don't have tried to use the Bonjour.

Thanks

[ Reply to This | # ]
10.4: Networking between a Parallels VM and OS X
Authored by: rbfigueira on Wed, Sep 5 2007 at 12:23PM PDT
I have found the solution !
Disable Windows Firewall :o)

[ Reply to This | # ]
10.4: Networking between a Parallels VM and OS X
Authored by: rbfigueira on Wed, Sep 5 2007 at 12:26PM PDT
I have found the solution !
Disable Windows Firewall :o)

[ Reply to This | # ]