public int getMcastPort() {
    return agentConfig.getMcastPort();
  }
Gets the mcastPort of the distributed system that this Agent is managing.

@return The mcastPort value
geode-core/src/main/java/org/apache/geode/admin/jmx/internal/AgentImpl.java