Method NetUtils.local_host() Method local_host string local_host() Description Returns either ::1 or 127.0.0.1 depending on the availability of IPV6.