Use an address object which stores the host and the port
Do not use unnecessary exception