Tips / Tricks (4) communicating with loopback? set host to NULL when calling getaddrinfo() Note: if you want the port unset, you need to specify "0" as the service argument