The host machine's loopback IPv4 and IPv6 addresses, typically 127.0.0.1 and ::1, respectively.
127.0.0.1
::1
Results from system sources are cached for 5s to inhibit unnecessary repeated calls.
Returns value in its canonicalized hostname form
Resolves localhost to an IPAddress via system calls
localhost