public Integer getPort() {
      return port != null ? port : getDefaultLocatorPort();
    }
Gets the port number used by the Locator to listen for client requests. If the port was not
specified, then the default Locator port (10334) is returned.

@return the specified Locator port or the default port if unspecified.
@see #setPort(Integer)
geode-core/src/main/java/org/apache/geode/distributed/LocatorLauncher.java