If I confire server.port=0 to set a random port, the component register in Eureka with port 0. Only visually, the registered uri is correct.
I tried with the following combinations:
Spring-boot-starter-parent 2.1.12.release Netflix-dependencies 2.1.5.release Cloud-dependencies Greenwich.SR5
Spring-boot-starter-parent 2.2.4.release Netflix-dependencies 2.2.1.release Cloud-dependencies Hoxton.SR1
Comment From: OlgaMaciaszek
Yes, this is not supported and a decision has been taken to only document a workaround. You can see the details (with the workaround) in https://github.com/spring-cloud/spring-cloud-netflix/issues/843.
Comment From: OlgaMaciaszek
Closing in favour of https://github.com/spring-cloud/spring-cloud-netflix/issues/843.