Cannot open localhost in Microsoft Edge (Project Spartan) in Windows 10 Preview

I installed a preview of Windows 10 and installed IIS.

Open " http: // localhost " in Project Spartan cannot connect.

IE has no problem. What is the problem?

+58
browser microsoft-edge windows-10 iis
May 19 '15 at 19:15
source share
8 answers

So the problem is Spartan . Edge does not have access to loopback addresses to which most Windows Store applications are blocked from access.

If you are using RTM for Windows 10 or build 10166, you can do this by going to about:flags and selecting "Allow local loop":

enter image description here

Image courtesy of Ryan Joy and used with permission . sub>

If you are using a previous build of Windows 10, you can use the CheckNetIsolation tool to add LoopbackExempt to the list. Use this from an elevated command prompt:

 CheckNetIsolation LoopbackExempt -a -n="Microsoft.MicrosoftEdge_8wekyb3d8bbwe" 

Microsoft.MicrosoftEdge_8wekyb3d8bbwe is the Edge application identifier. It can be defined using Get-AppxPackage in PowerShell and sifting the results for Spartan / Edge and using PackageFamilyName .

Starting with version 10158, the name PackageFamilyName has changed from Microsoft.Windows.Spartan_cw5n1h2txyewy to Microsoft.MicrosoftEdge_8wekyb3d8bbwe .

+71
May 19 '15 at 19:22
source share

Microsoft Edge disables network isolation by default. To enable loopback and debug your localhost server, run the following command from the elevated shell if you have 10158 or newer :

CheckNetIsolation LoopbackExempt -a -n = Microsoft.MicrosoftEdge_8wekyb3d8bbwe

or

checknetisolation loopbackexempt -a -p = S-1-15-2-3624051433-2125758914-1423191267-1740899205-1073925389-3782572162-737981194

or this one if you have an older version installed

CheckNetIsolation LoopbackExempt -a -n = Microsoft.Windows.Spartan_cw5n1h2txyewy

In a future update, you will be able to enable loopback localhost support with about: flags .

+16
Jul 08 '15 at 18:00
source share

Starting with Windows 10 Build 10166+ ( available today through Windows Insider), LAN access is available by default in Microsoft Edge without running the CheckNetIsolation command specified in previous answers.

You can disable this access through "about: flags" if you want to have an even more secure configuration.

+7
Jul 09 '15 at 17:37
source share

For the latest build (10158), the following command did this for me:

 CheckNetIsolation LoopbackExempt -a -n=Microsoft.MicrosoftEdge_8wekyb3d8bbwe 

The trick is to use the Get-AppxPackage PowerShell Get-AppxPackage to define the last name of the Edge app as the vcsjones mentioned .

+6
Jun 30 '15 at 6:44
source share

Add subdomain to C: \ Windows \ System32 \ Drivers \ Etc \ hosts (Windows 10)

0
Sep 12 '16 at 10:22
source share

Go to the folder C: \ Windows \ System32 \ drivers \ etc. save a copy of the hosts file for backup open the hosts file as administrator delete or comment on any lines from 127.xxx or localhost ...

restart the computer.

0
Dec 28 '16 at 9:54 on
source share

Neither the CheckNetIsolation LoopbackExempt -a -n=Microsoft.MicrosoftEdge_8wekyb3d8bbwe command nor the manual enable "Allow CheckNetIsolation LoopbackExempt -a -n=Microsoft.MicrosoftEdge_8wekyb3d8bbwe " on Edge helped me.

What worked was:

  1. Edit the file C:\Windows\System32\drivers\etc\hosts and add the mapping for the custom host name to 127.0.0.1, for example 127.0.0.1 local .

  2. Open Internet Options and add http: // local for local intranet sites.

0
Oct 17 '18 at 5:47
source share

Please follow these steps:

one.

enter image description here

2.

Copy this code

 CheckNetIsolation LoopbackExempt -a -n=Microsoft.MicrosoftEdge_8wekyb3d8bbwe 

3.

enter image description here

**

Work is done!

0
Jun 06 '19 at 6:41
source share



All Articles