If there is no port, then the port is ignored (see line 95).