New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 763908 link

Starred by 3 users

Issue metadata

Status: WontFix
Owner: ----
Closed: Sep 2017
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Mac
Pri: 3
Type: Bug



Sign in to add a comment

Chrome on mac unable to access localhost inside VM

Reported by s...@impact.dk, Sep 11 2017

Issue description

Chrome Version       : 61.0.3163.79 (Official Build) (64-bit)
URLs (if applicable) :
Other browsers tested:
  Safari: Version 10.1.1 (12603.2.4) - OK
  Firefox: 55.0.3 (64-bit) - OK
have tested this issue:
     Safari: Yes
    Firefox: Yes
         IE: No

What steps will reproduce the problem?
Operating System: macOS Sierra Version 10.12.5
VM: Parallels Desktop Version 12.2.1 (41615)
(1) Run Windows 10 with Parallels while using your company network
(2) Host a website on your IIS Server
(3) Setup bindings in your Hosts file on both VM (Windows) and Mac
(4) Open your hosted website inside your VM - Works!
(5) Open your hosted website inside Safari/Firefox on Mac - Works!
(6) Open your hosted website inside Chrome on Mac - Works!

Repeat 1-5 while connected to your company network through a VPN
(4) Open your hosted website inside your VM - Works!
(5) Open your hosted website inside Safari/Firefox on Mac - Works!
(6) Open your hosted website inside Chrome on Mac - Fails!

What is the expected result?
I expect the hosted website to be loaded properly while using Chrome.

What happens instead?
I cannot connect to the website because of some DNS issues.

Please provide any additional information below. Attach a screenshot if
possible.


 
Labels: Needs-Triage-M61
Components: Internals>Network>DNS
Labels: OS-Mac
Cc: rbasuvula@chromium.org
Labels: TE-NeedsTriageHelp
This looks like issue related to local host.In house team not having the permission to create local host url, hence adding the respective label for it to triage further.

Thank You!

Comment 4 by mge...@chromium.org, Sep 12 2017

Cc: mkwst@chromium.org
Labels: Needs-Feedback
Status: Untriaged (was: Unconfirmed)
You mentioned "localhost" in the bug title. Are you trying to map "localhost" to an IP other than 127.0.0.1? If so, this is unsupported. See https://tools.ietf.org/html/draft-west-let-localhost-be-localhost-06 for an explanation, and  issue 683213  for the recent bugfix that might have caused you to start seeing this behavior. If that's what happened, please respond here so I can close the bug.

If that's not the issue, please provide a net-internals log following the instructions at https://sites.google.com/a/chromium.org/dev/for-testers/providing-network-details.

Comment 5 by s...@impact.dk, Sep 12 2017

Thank you mge!

It was because of Chrome's hosts check of localhost mappings. After using local instead of localhost, it worked. It's still an awkward workaround, which i would prefer not to do... I can't see the security necessity for this, since no other browsers do it, and probably will never do.

But thank you anyway, at least i can keep developing on Chrome for the momment.

Comment 6 by mmenke@chromium.org, Sep 12 2017

Status: WontFix (was: Untriaged)
Localhost is considered a magical, secure origin, even for HTTP (non-HTTPS) requests.  Hence, we bypass DNS lookups for it.

Comment 7 by s...@impact.dk, Sep 12 2017

But you couldn't make it available as a flag you could turn off inside Chrome settings? This way you would still secure those who unintentionally navigate to a localhost which is mapped to an external ip, and you allow those who knows what they are doing to keep working as they like. I mean, this is a Google team, not Apple, should be more customizable and advanced.

Comment 8 by mmenke@chromium.org, Sep 12 2017

The preference in Chrome is to minimize the number of settings (compare chrome://settings in Chrome to the thousands of settings in FireFox), and this comes nowhere near the general utility needed for that.  The idea is that fewer settings both makes settings easier to use, and there are fewer combinations of settings that can cause things to break badly.  Agree or disagree, changing that philosophy is above my pay grade.

Comment 9 by s...@impact.dk, Sep 12 2017

I agree, never mess it up, so no user can find head or tails in the settings. But to be honest, your chrome://flags/ is a clustermess, and you once had the option to disable this functionality inside of there before. Can't see why one line would make a difference in such a big list. This is also not a list which the average user access.
It's not the UI that's the problem, but the underlying logic, and making sure it works with everything else.  about:flags is supposed to be for features under development, that aren't production ready yet (i.e., targeted solely at Chrome developers actively working on a feature, not power users).  The practice hasn't quite matched the theory there.

Comment 11 by s...@impact.dk, Sep 12 2017

Okay, makes sense. Well thanks for the quick replies once again! :)

Sign in to add a comment