Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Access Parallels Windows localhost from Mac [closed]

I use Windows (7) OS as a development platform, running on a Mac / Parallels Desktop 5.

I would like to access the Windows localhost - from the Mac side for testing purposes.

I've found many solutions of accessing the other way around (access Mac's localhost from Windows) - but found no solution for this access direction (if any).

Any idea ? Is it possible ?

like image 541
Ranch Avatar asked Apr 20 '10 08:04

Ranch


People also ask

How do I switch between Windows and Mac in Parallels?

When operating Parallels in Full-screen Mode, both Windows and Mac operating systems will fill the screen. The easiest way to switch between them is by simply swiping with three fingers on your trackpad.

How do I access Windows files from Mac Parallels?

Make sure that all Devices and Shared items are enabled in Finder preferences > Sidebar. In Finder open Shared items, locate your virtual machine and connect to it. In Finder open your Mac computer item > drag and drop Windows disk to Favorites.

Should I isolate Windows from Mac Parallels?

Isolating Windows from OS X may provide a higher level of security by not allowing compromised items from one OS to come into contact with the other. Do one of the following: Click the Parallels icon in the menu bar and choose Configure.


2 Answers

The above didn't help me, but this did:

  • Go to Windows VM, go to Start --> Run... --> type cmd.exe

  • The windows command line opens. Type ipconfig and find out your IP4-adress.

  • Edit your macs hosts file as described in this blogpost. Put in the following line, replacing my windows VMs local IP (here 10.211.55.5) with the one you found out in the step before:

    10.211.55.5   windows 

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

like image 188
Akku Avatar answered Oct 20 '22 21:10

Akku


I had the same problem as you Ranch. I'm running Win7 on Mac OS X (Snow Leopard) / Parallels 5. I solved my localhost problem on mac , by turning off win7 firewall and "enable" anonymous authentication in Authentication setting in IIS Manager.

Also I've configured in parallels:

  1. Configure - hardware - Network adapter 1: Default Adapter

  2. Preferences - network - connection type - shared networking

Edit: For Parallels 8

  1. Configure > Hardware > Network adapter 1: Default Adapter

  2. Preferences > Advanced > Network: Change Settings > Shared

like image 45
Arefin Avatar answered Oct 20 '22 22:10

Arefin