Add ability to force IPv4 or IPv6