Scott Hanselman

Fixed: Microsoft Edge can't see or open VirtualBox-hosted local web sites

December 02, 2015 Comment on this post [10] Posted in Bugs
Sponsored By

I'm using VirtualBox on a Windows 10 machine along with Docker to deploy ASP.NET websites to local Linux Containers. To be clear, this isn't accessing websites with http://localhost, this is accessing locally an VirtualBox virtual network.

For example, my local IP and subnet is here, but my VirtualBox is here:

Ethernet adapter Ethernet:
IPv4 Address. . . . . . . . . . . :

Ethernet adapter VirtualBox Host-Only Network:
IPv4 Address. . . . . . . . . . . :

Make sense? A Linux VM running Docker containers is then, for example, on various ports.

Strangely, however, I was unable to access these VirtualBox-hosted websites with Microsoft Edge, while they worked on Chrome and Firefox. I wanted to fix this. Just saying "use another browser" isn't enough, I like to figure it out.

I ended up trying this, and oddly, I was right. Go to Start, type "Internet Options" then then the Security Tab, then click Local Intranet, then Sites. Add your Virtual Machine's IP (in this case, the Docker Host) in that list and you're golden.

Add your VirtualBox VM's IP in the local intranet list of sites

Now about the WHY....I have no idea. I'll report back as I keep poking around.

Sponsor: Big thanks to Infragistics for sponsoring the feed this week. Responsive web design on any browser, any platform and any device with Infragistics jQuery/HTML5 Controls.  Get super-charged performance with the world’s fastest HTML5 Grid - Download for free now!

About Scott

Scott Hanselman is a former professor, former Chief Architect in finance, now speaker, consultant, father, diabetic, and Microsoft employee. He is a failed stand-up comic, a cornrower, and a book author.

facebook twitter subscribe
About   Newsletter
Hosting By
Hosted in an Azure App Service
December 02, 2015 9:08
Scott, try doing a custom level and then adding to/reminding from your custom level to narrow down the specific setting that gets it to work. That should give you more insight, or at least help narrow down where the bug is, if that's indeed what it is.
December 02, 2015 12:26
Good idea, Mason!
December 02, 2015 13:44
I dunno if it is the problem. But "store" apps have some restrictions in loopback.

Fiddler also needs some extra config to work with edge
December 02, 2015 17:40
For anyone not able to access localhost now that it is Edge, here is the fix that worked for me:

CheckNetIsolation LoopbackExempt -a -n=Microsoft.MicrosoftEdge_8wekyb3d8bbwe
December 02, 2015 19:01
First observation: Internet Options (for Internet Explorer historically) affected Edge behavior. That indicates part of Edge is using IE components even if not reflected in Edge options.

Second: Didn't IE change in a recent version to not recognize intranet sites automatically unless joined to domain.
December 02, 2015 21:14
I noticed that your two IP addresses are on different subnets (one subnet is 192.168.0 and the other is 192.168.99) - assuming that you use the common subnet mask of (/24 or 24-bit subnet length - not present in your feedback to confirm).

I am not a network expert, but I wonder if there is any issue with the accessibility / routeability of network requests across subnets on the same system.

I heard references to loopback in the earlier comments. Does lookback network visibility apply across subnets or only within a subnet?

Is adding the VM IP address to the Internet Options configuration kind of like adding IP addresses to an LMHOST file (to get past DNS issues, etc.) - to give explicit visibility and get past DNS visibility issues? Just a guess - not proven.

I know - more questions than answers - but possibly some other avenues to explore. Like you, I like to get to the real root causes and facts (where possible) to know why something does or doesn't work, and to know that the correction will be durable (to the degree that is possible) rather than fail in the future (due to incorrect assumptions / theories / incomplete infromation / "facts" that are not facts / etc.).

I am interested in what you find - keep us posted.

Scott R.
December 02, 2015 23:23
Though not relevant to the actual problem, I have a question. Why VirtualBox and not Hyper-V?
December 02, 2015 23:43
Is this a work computer that might be using a proxy? Sites in the Local Intranet zone will explicitly bypass any proxy.
December 07, 2015 10:09
Because Microsoft browsers are notoriously stupid when it comes to LAN websites.

Ive been fighting this stupidity for years..

Its the same level of stupidity applied to SMB (network shares), where moving files from one folder to another will invoke a security warning.. What the hell?
December 11, 2015 0:56
hi, scott, I am interested in trying .net core on linux in virtualbox, but I am unable to find an appropriate version of linux with an appropriate set of documentation and samples for currently available version of donet core...

could you suggest to dotnet core development team to build one publicly downloadable virtualbox image of linux of whatever sort with a version of dotnet core installed in it, with a shot text on how to build a sample or two...

I am interested primarily in testing command line programs and only after mastering that, and mastering updating dotnet core to current version am I willing to start with ASP.NET on it

so, downloadable, precooked virtual box image would be of help... and you probably would be able to communicate that to dotnet core development team :-)

virtual box would not be the problem because it can be found used around us for many purposes as it is free and just works...

btw, is included with a development for dotnet core as of now?

thanks a lot :-)

Comments are closed.

Disclaimer: The opinions expressed herein are my own personal opinions and do not represent my employer's view in any way.