Can not resolve http://localhost:8080/ on Mac OSX Lion

15,238

Found that behind proxy by the default only the *.local is excluded, so just need to add localhost and 127.0.0.1 to avoid DNS resolution on the local machine. Put

*.local, localhost, 127.0.0.1

into the following setting dialog:

System Preferences/Network/Advanced/Proxies/Bypass proxy settings for these Hosts & Domains

Share:
15,238
pharsfalvi
Author by

pharsfalvi

Updated on June 08, 2022

Comments

  • pharsfalvi
    pharsfalvi almost 2 years

    I'm trying to use a local server on my mac, but it seems to ignore the localhost settings in the /etc/hosts file. Found several pages where solution was to do a reinstall, and put localhost to the first place of /etc/hosts etc... I believe these are more than needed.

    Does anybody still have the same problem?

  • pharsfalvi
    pharsfalvi over 12 years
    Thanks for that, ping is fine. Found that proxy settings did not exclude localhost, only *.local by default.
  • pharsfalvi
    pharsfalvi over 9 years
    Thanks Chad for the feedback, I mark it as answered based on that.
  • pharsfalvi
    pharsfalvi over 9 years
    Thanks Chris, your info is valuable to get a grasp on how it works.