Access Parallels Windows localhost with Mac

I am using Windows (7) as a development platform running on Mac / Parallels Desktop 5.

I would like to access the local Windows host - from the Mac side for testing.

I found many solutions for accessing another path (access to the local Mac host from Windows), but did not find solutions for this direction of access (if any).

Any idea? Is it possible?

+81
windows-7 virtual-machine localhost parallels macos
Apr 20 '10 at 8:19
source share
5 answers

I had the same problem as your ranch. I am running Win7 on Mac OS X (Snow Leopard) / Parallels 5. I solved the problem with localhost on mac by disabling the win7 firewall and enabling anonymous authentication in the authentication setting in IIS Manager.

I also set up parallels:

  • Configuration - Hardware - Network Adapter 1: Default Adapter

  • Preferences - Network Connection Type - Shared Network

Edit: for Parallels 8

  • Configure> Hardware> Network Adapter 1: Default Adapter

  • Settings> Advanced> Network: Change Settings > General

+26
May 6 '10 at 9:10
source share

This did not help me, but it happened:

  • Go to Windows VM, go to Start menu β†’ Run ... β†’ type cmd.exe

  • A Windows command prompt will open. Enter ipconfig and find out the IP4 address.

  • Edit the macs hosts file as described in this blog post . Put on the next line, replacing the local IP address of the Windows virtual machines (here 10.211.55.5) with the one you found in the previous step:

     10.211.55.5 windows 

Then you can access the local windows host using win instead of localhost, for example http://windows:8080/someapp

+30
Feb 18 '13 at 15:40
source share

It depends on how your network card is configured in the virtual machine. I don’t know how this happens in parallel, but in VMWare Fusion you can either configure it as a "bridge" (which means sharing the same ip with the host), "NAT", which means that it will have its own private IP address and connect to the Internet through the host, or "Private Network", which means that it will have a private IP address and will not connect to the Internet. In the second and third cases, you can access the web server running on Windows using the private IP address of the virtual machine, but in the case of the bridge, I do not think it can be done.

+1
Apr 20 2018-10-10T00:
source share

It sounds like your Parallels configuration is configured for the Host-Only network for the guest. Switching to a shared network should provide the Windows guest OS with a local IP address.

Then you will have to access the local Windows IP address ( not 127.0.0.1) from the Mac browser. You can find out which IP address to use by opening a command prompt in the Windows guest system and looking at the output of the ipconfig command.

0
Apr 23 '10 at 2:13
source share

I followed the instructions above and Akku provided an important hint, although this did not work for me. When I run ipconfig on the Windows command line, I get 10.211.55.3 as the IPv4 address and 10.211.55.1 as the standard gateway. Using the 10.211.55.3 file in the Windows hosts file (C: \ Windows \ System32 \ drivers \ etc \ hosts) did not help - you don’t know why. So I tried: 10.211.55.2, and it worked.

To summarize: first you need to configure the apache virtual host configuration as described, and then you need to open: C: \ Windows \ System32 \ drivers \ etc \ hosts and enter: 10.211.55.2 mysite.localhost (or something else you defined in your virtual host configuration file). Hope this helps those who have the same problem as me.

I found this here: http://sirprize.me/scribble/accessing-localhost-on-lion-host-with-windows-guest-on-parallels/

0
Apr 2 '13 at 16:00
source share



All Articles