port is optional in legacy hosts definition, fixes #75