def replica_diagnostic_server_port(replica_id):
    """
    Returns a unique port for each replica
    All the replicas run in the same container and therefore share an IP address
    """
    return 27500 + replica_id