I have two services. One runs on port 8001 and it registered in eureka server, other runs on port 8002, and doesn't exist in eureka. I want to change port 8001 to 8002 in my local ribbon client. I have created
public class LocalProxy <T extends DiscoveryEnabledServer> implements ServerListFilter<T>
with method
public List<T> getFilteredListOfServers(List<T> servers)
But I don't know how to change the port. DiscoveryEnabledServer.setPort doesn't work.