Allow socket family to be chosen

Socket family defaults to IPv6. This isn't acceptable in some systems.