{"action":"reopened","issue":{"url":"https://api.github.com/repos/spring-cloud/spring-cloud-netflix/issues/570","labels_url":"https://api.github.com/repos/spring-cloud/spring-cloud-netflix/issues/570/labels{/name}","comments_url":"https://api.github.com/repos/spring-cloud/spring-cloud-netflix/issues/570/comments","events_url":"https://api.github.com/repos/spring-cloud/spring-cloud-netflix/issues/570/events","html_url":"https://github.com/spring-cloud/spring-cloud-netflix/issues/570","id":109533849,"number":570,"title":"eureka client instance registers incorrectly if 'server.port' is set to 0","user":{"login":"kdvolder","id":1002156,"avatar_url":"https://avatars.githubusercontent.com/u/1002156?v=3","gravatar_id":"","url":"https://api.github.com/users/kdvolder","html_url":"https://github.com/kdvolder","followers_url":"https://api.github.com/users/kdvolder/followers","following_url":"https://api.github.com/users/kdvolder/following{/other_user}","gists_url":"https://api.github.com/users/kdvolder/gists{/gist_id}","starred_url":"https://api.github.com/users/kdvolder/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kdvolder/subscriptions","organizations_url":"https://api.github.com/users/kdvolder/orgs","repos_url":"https://api.github.com/users/kdvolder/repos","events_url":"https://api.github.com/users/kdvolder/events{/privacy}","received_events_url":"https://api.github.com/users/kdvolder/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/spring-cloud/spring-cloud-netflix/milestones/12","html_url":"https://github.com/spring-cloud/spring-cloud-netflix/milestones/1.1.0","labels_url":"https://api.github.com/repos/spring-cloud/spring-cloud-netflix/milestones/12/labels","id":1182344,"number":12,"title":"1.1.0","description":"","creator":{"login":"dsyer","id":124075,"avatar_url":"https://avatars.githubusercontent.com/u/124075?v=3","gravatar_id":"","url":"https://api.github.com/users/dsyer","html_url":"https://github.com/dsyer","followers_url":"https://api.github.com/users/dsyer/followers","following_url":"https://api.github.com/users/dsyer/following{/other_user}","gists_url":"https://api.github.com/users/dsyer/gists{/gist_id}","starred_url":"https://api.github.com/users/dsyer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dsyer/subscriptions","organizations_url":"https://api.github.com/users/dsyer/orgs","repos_url":"https://api.github.com/users/dsyer/repos","events_url":"https://api.github.com/users/dsyer/events{/privacy}","received_events_url":"https://api.github.com/users/dsyer/received_events","type":"User","site_admin":false},"open_issues":3,"closed_issues":42,"state":"open","created_at":"2015-06-26T09:44:01Z","updated_at":"2015-10-22T21:28:38Z","due_on":null,"closed_at":null},"comments":2,"created_at":"2015-10-02T17:18:54Z","updated_at":"2015-10-22T21:28:38Z","closed_at":null,"body":"I created basic service that registers itself with a local Eureka server. The application .yml of my client looks like this:\r\n\r\n    server:\r\n      port: 8001\r\n    spring:\r\n      application:\r\n        name: date-service\r\n    eureka:\r\n      client:\r\n        service-url:\r\n          defaultZone: http://localhost:8761/eureka/\r\n\r\nThat works.\r\n\r\nWhen I change 'server.port' to '0' so the port is chosen dynamically then the service doesn't appear to register itself correctly anymore. (It still registers, but with the wrong port, 80).\r\n\r\nBeing able to use dynamic port would be nice, if one wants to run multiple instances of a service locally without having to create multiple configurations of it (i.e. just relaunch the same thing a few times and have each running instance dynamically pick a port)."}}