osx - Whats the difference between 127.0.0.1 and ::1 -
for couple day fighting set apache installed homebrew on osx 10.10 . reason working not local domains trying setup via hosts file. no matter doing http://localhost available trough browser. , i've changed 1 thing.
originally in /etc/hosts putting line set local domain:
127.0.0.1 imac.dev
and did not work, changed to:
::1 imac.dev
which how localhost set in hosts files , works!
can explain me why?
the first 1 ipv4 address , other signifies , ipv6 local address.
loopback address ipv4
127.0.0.1 imac.dev
loopback local address ipv6
::1 imac.dev
in current oses ipv6 if enabled, takes precedence on ipv4 might reason having issue. i, had use ipv6 ip address in dns record spf because gmail looking too. whether or not, it's being favored , replace ipv4 eventually.
Comments
Post a Comment