public Endpoint withoutPort() {
        if (port == 0 || isDomainSocket()) {
            return this;
        }
        return new Endpoint(type, host, ipAddr, 0, weight, attributes);
    }
Returns a new host endpoint with its port number unspecified.

@return the new endpoint whose port is unspecified if this endpoint has its port.
        {@code this} if this endpoint does not have a port already.

@throws IllegalStateException if this endpoint is not a host but a group
core/src/main/java/com/linecorp/armeria/client/Endpoint.java