Access .NET app running in Windows VM from host computer using VMWare Fusion 8July 20th 2017
Suggest a change to this post here! (requires a GitHub account)
I spent a ton of time figuring this out today. We're in the process of moving from Windows to Macos and this makes .Net dev work a ton easier on Mac. Hope this helps!
Assumptions made for this tutorial:
- VMWare Fusion 8
- Windows 10 VM
- IIS Express/Visual Studio project
- Make sure in your VM's Settings under
Network Adapteris configured to share the ip of the VM with the host computer
- Add an
inbound ruleto the Windows firewall allowing connections from the port your project starts on
ipconfigin CMD and get the ipv4 address of the Windows box
- Go to
$projectDirectory > (this is a hidden folder) .vs > config > applicationhost.configand edit anywhere it says localhost to the ip you copied
- Instead of using localhost:$port you can use ip:$port!