Chrome ignores hosts file for localhost
Reported by
cukes.i...@gmail.com,
Jul 29 2017
|
||
Issue descriptionUserAgent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/59.0.3071.115 Safari/537.36 Example URL: Steps to reproduce the problem: 1. Start up a web application on the host machine (ip: 10.63.240.44) which can be access at http://localhost:9191/vauthtestbed/index.jsp 2. Docker container with /etc/hosts file having two entries <127.0.0.1 localhost> and <10.63.240.44 localhost>. 3. Docker container with no_proxy=*.local, localhost 4. Docker container access http://localhost:9191/vauthtestbed/index.jsp using Chrome, it failed. 5. The same Docker container access the same address using Firefox, it succeeded. What is the expected behavior? Chrome is supposed to display the web page as Firefox does. What went wrong? Chrome shows ERR_CONNECTION_REFUSED. Did this work before? N/A Chrome version: 59.0.3071.115 Channel: stable OS Version: Ubuntu 16.04 LTS Flash Version:
,
Jul 29 2017
What I am trying to achieve is that inside Docker container accessing http://localhost:9191/vauthtestbed/index.jsp which is running on the host machine. If accessing the web application with ip address, it works. But I want to access with localhost. Both Chrome and Firefox use system proxy.
,
Jul 30 2017
Please have a look at the attached screenshots for events, which shows that it does not use proxy [events_1] but the address list [events_2] does not have all mappings for localhost only 127.0.0.1 and ::1.
,
Jul 31 2017
"localhost" lookups are magical, and bypass normal name resolution, so this is expected behavior. |
||
►
Sign in to add a comment |
||
Comment 1 Deleted