Prepare for potential IPv6:
use hostname instead of int for addresses