Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,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 3.60 / 5
  You rated: 5 / 5 (5 votes cast)
 
[23,592 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 whoever 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 Aug 21, '07 07:46:04AM

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 Aug 21, '07 07:50:24AM

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 Aug 21, '07 09:27:18AM

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 Aug 22, '07 12:54:49AM

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 Sep 05, '07 01:03:09AM
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 Sep 05, '07 12:23:15PM

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 Sep 05, '07 12:26:15PM

I have found the solution !
Disable Windows Firewall :o)



[ Reply to This | # ]