Always use IPv4 sockets for IPv4 addresses.