Describe the bug Please provide details of the problem, including the version of Spring Cloud that you are using.
Sample If possible, please provide a test case or sample application that reproduces the problem. This makes it much easier for us to diagnose the problem and to verify that we have fixed it.
- Set up a eureka server
- Set up a spring boot client
- Start client with port=0
- Open eureka UI
It will show the port as 0 and if you spin up miltiple services with port 0, eureka will only show 1
Comment From: arikanorh
I did some debugging and found the relevant registry code
The map that holds the key is using registrant.getId() which says the port is 0 but infact it is not as seen in the debugger port information
Comment From: spencergibb
Duplicates #843