Parallels For Mac Localhost

Change the IPV4 option to Using DHCP with manual address and type in an unused IP address. In the example above I used 192.168.1.100. Step 3: Edit your Windows hosts file. Click the Start button and search for Notepad. Right click on the result and select Run as administrator.Enter your password and Notepad will launch. Parallels is still the best way to run Windows on a Mac simultaneously and the latest version of Parallels 14 has just been released. Parallels allows you to conveniently run all those Windows only applications and games that don’t run on Mac. Here we’ve taken a first look at the new macOS Mojave ready version of Parallels.

  1. Parallels For Mac Localhost Cups
  2. Parallels For Mac Localhost Setup
  3. Parallels For Mac Download
  4. Parallels For Mac Support
  5. Parallels Access Mac Localhost From Windows
Active7 months ago

I'am running Windows 10 on OS X using Parallels Desktop (network is in SHARED mode). I need to access web applications created on Visual Studio and running on IIS 10 from the host. For example for a generic application running on Windows at http://localhost:1654 I would like to access it from Mac browser with something like http://[ip_virtual_machine]:1654.

The first thing I did was to completely shutdown the Windows firewall, disabled it on public and private networks and also disabled the Firewall service in services.msc. Next I've checked the ip addresses of the host and the virtual machine. Running ifconfig on the Mac I get that the IP address of the virtual machine is 10.211.55.2 while running ipconfig on Windows I get that the IP address is of the VM is 10.211.55.3 (with gateway 10.211.55.1).

I've tried to access the web application using both http://10.211.55.2:1654/ and http://10.211.55.3:1654/ but with no luck.With the former I get a Bad Request - Invalid Hostname response, while with the latter I get ERR_CONNECTION_REFUSED.

In case the firewall was still doing something under the hood, I've also added an inbound rule to allow connections for port 1654, but same result.

I've also noticed one thing: in the applicationhost file in C:WindowsSystem32inetsrvconfigapplicationHost.config there is not any reference to my web applications created in Visual Studio. AFAIK when I run a web application in Visual Studio on IIS the binding should be added to the applicationhost file, but there are no entries for any of my web applications. May I have some problems with IIS?

Another thing: the other way around works. I can access a node.js local server on my Mac from the virtual machine using http://10.211.55.2:[port].

But I need to access from Mac to Windows IIS. How can I do that?

revyrevy

2 Answers

Ok I got it working.The additional steps are:

1) Open CMD or Powershell as administrator. Add a URL ACL entry for the port you need:

2) The applicationhost file with the bindings in my case is located directly inside the Visual Studio project folder. Specifically it is located at .vs/config/applicationhost.config.Open the file in a text editor and find the line with the bindings information for your application, something like

Add an another entry with the IP of your virtual machine, like this:

3) (** Optional: may not be necessary ***) In the applicationhost file, find the entry

and change it to

Now I can access the web app running on IIS from the Mac using http://10.211.55.3:1654 address.

Hope this helps.

revyrevy

The accepted answer didn't work for me, but I finally had success after following the steps outlined here. My setup consists of Parallels 14 running on macOS 10.14.2, and Visual Studio 2017 running on Windows 10.

In summary:

  1. In Parallels, make sure your Network type is set to 'Shared Network' and that 'Share Mac applications with Windows' is enabled
  2. In your Windows VM, open PowerShell, enter ipconfig, and copy down your VM's IPv4 address. Then open Settings, go to System > About, and copy down your VM's device name
  3. In macOS, add an entry to your /etc/hosts file that maps your VM's IP address to its device name, e.g. 10.211.55.3 your-device-name
  4. Back in your Windows VM, in the folder for your Visual Studio project, edit the <binding> key in .vs/config/applicationhost.config (note that .vs is a hidden folder) to use your VM's device name instead of localhost, e.g. <binding protocol='http' bindingInformation='*:1234:your-device-name' />
  5. Open PowerShell as an administrator and run the following command to enable external access, using your VM's device name and the port from step #4: netsh http add urlacl url=http://your-device-name:1234/ user=everyone
  6. Open Windows Firewall and add new inbound and outbound rules for your project. For both rules, select 'Port' as the rule type and 'TCP' as the protocol, enter the port from step #4, and select 'Allow the connection'
  7. In Visual Studio, go to your project's properties, click the 'Web' tab, and change your project URL to use your Windows device name instead of localhost, e.g. http://your-device-name:1234/. Check the box for 'Override application root URL' and enter that same URL again
  8. Debug your project using the 'Open in Mac' browser. If you don't see this option, click 'Browse With...', then 'Add...', and then add an entry that points to C:Program Files (x86)ParallelsParallels ToolsSIASharedIntApp.exe

Upon debugging, your app will launch in Safari (or whatever your default Mac browser is) at http://your-device-name:1234!

daGUYdaGUY
10.2k23 gold badges63 silver badges104 bronze badges

Not the answer you're looking for? Browse other questions tagged iislocalhostvirtual-machinefirewallparallels or ask your own question.

Active6 years, 1 month ago

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 ?

sorin
81.3k121 gold badges391 silver badges613 bronze badges
RanchRanch
1,7613 gold badges22 silver badges27 bronze badges

closed as off-topic by madth3, Sahil Mittal, talonmies, Kamil Budziewski, Michael SchmidtSep 18 '13 at 6:19

This question appears to be off-topic. The users who voted to close gave this specific reason:

  • 'Questions about general computing hardware and software are off-topic for Stack Overflow unless they directly involve tools used primarily for programming. You may be able to get help on Super User.' – madth3, Sahil Mittal, talonmies, Kamil Budziewski, Michael Schmidt
If this question can be reworded to fit the rules in the help center, please edit the question.

5 Answers

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

Matt Gibson
11.5k6 gold badges38 silver badges72 bronze badges
ArefinArefin
13.9k2 gold badges13 silver badges4 bronze badges

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 yourIP4-adress.

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

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

AkkuAkkuParallels for mac torrent
3,2784 gold badges38 silver badges64 bronze badges

This depends on how your network card is setup in the virtual machine. I don't know how it is in parallels, but in VMWare Fusion you can either set it up as 'bridged' (which means sharing the same ip with the host), 'NAT' which means it will have it's own private ip address and connect to the internet through the host , or 'Private network' which means it will have a private IP address and will not connect to the internet. In the second and third case you can access the web server running on windows using the private ip address of the virtual machine, but in the bridge case I don't think this can be done.

mateimatei
6,5821 gold badge13 silver badges15 bronze badges

Sounds to me like your Parallels config is set to Host-Only networking for the Guest.Switching to Shared Networking should give your guest Windows OS a local IP address.

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

CoxyCoxy

Parallels For Mac Localhost Cups

7,5594 gold badges29 silver badges59 bronze badges

Parallels For Mac Localhost Setup

I have followed the instructions above and Akku's provided the important hint, although for me it did not work.When I run ipconfig in the windows command line, I get 10.211.55.3 as an IPv4-Address and 10.211.55.1 as the standard gateway. Using 10.211.55.3 in the windows hosts file (C:WindowsSystem32driversetchosts) did not work - not sure why. So I tried: 10.211.55.2 and it worked.

Summing up: you have to set up your apache virtual host config first as described and then you have to open: C:WindowsSystem32driversetchosts and enter: 10.211.55.2 mysite.localhost (or whatever you defined in your virtual host config file). Hope this helps for those with the same problem as me.

Parallels For Mac Download

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

Parallels For Mac Support

criscomcriscom

Parallels Access Mac Localhost From Windows

Not the answer you're looking for? Browse other questions tagged macoswindows-7localhostvirtual-machineparallels or ask your own question.