Fix #24: Use ipaddress module for IPv4/IPv6 host addresses.