hostWithPortIfSpecified

Returns "host:port" when port is specified. Else, returns host.