/** * Returns the actual server port after it has started. If an ephemeral port * is used it will be returned, otherwise the fixed port will be provided. * * @return The actual server port. */ public int getActualPort() { return (getPort() == 0) ? getEphemeralPort() : getPort(); }