private static MembershipConfigurationException createBadPortException(final String str) {
    return new MembershipConfigurationException("This process is attempting to use a locator" +
        " with a malformed port specification: " + str);
  }
parse locators & check that the resulting address is compatible with the given address

@param locatorsString a DistributionConfig "locators" string
@param bindAddress optional address to check for loopback compatibility
@return addresses of locators
geode-membership/src/main/java/org/apache/geode/distributed/internal/membership/api/LocatorConfigurationParser.java