The function http.ListenAndServe()ultimately calls net.Listen(). The documentation for net.Listenstates that it will be tied to the network provided to it:
For TCP networks, if the host in the address parameter is empty or an odd undefined IP address, Listen listens on all available unicast and anycast IP addresses of the local system. To use only IPv4, use the "tcp4" network.
, http.ListenAndServe(), , "tcp" , "tcp4", , . , golang, internetAddrList(), , host , ipv4. , golang infact, ipv4, .