The net Module

get_hostname_as_localhost()[source]