{"action":"created","issue":{"url":"https://api.github.com/repos/spring-cloud/spring-cloud-netflix/issues/1305","repository_url":"https://api.github.com/repos/spring-cloud/spring-cloud-netflix","labels_url":"https://api.github.com/repos/spring-cloud/spring-cloud-netflix/issues/1305/labels{/name}","comments_url":"https://api.github.com/repos/spring-cloud/spring-cloud-netflix/issues/1305/comments","events_url":"https://api.github.com/repos/spring-cloud/spring-cloud-netflix/issues/1305/events","html_url":"https://github.com/spring-cloud/spring-cloud-netflix/issues/1305","id":174262584,"node_id":"MDU6SXNzdWUxNzQyNjI1ODQ=","number":1305,"title":"Connection refused while trying to register eureka-clients","user":{"login":"pkuerzer","id":8500804,"node_id":"MDQ6VXNlcjg1MDA4MDQ=","avatar_url":"https://avatars1.githubusercontent.com/u/8500804?v=4","gravatar_id":"","url":"https://api.github.com/users/pkuerzer","html_url":"https://github.com/pkuerzer","followers_url":"https://api.github.com/users/pkuerzer/followers","following_url":"https://api.github.com/users/pkuerzer/following{/other_user}","gists_url":"https://api.github.com/users/pkuerzer/gists{/gist_id}","starred_url":"https://api.github.com/users/pkuerzer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pkuerzer/subscriptions","organizations_url":"https://api.github.com/users/pkuerzer/orgs","repos_url":"https://api.github.com/users/pkuerzer/repos","events_url":"https://api.github.com/users/pkuerzer/events{/privacy}","received_events_url":"https://api.github.com/users/pkuerzer/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":19,"created_at":"2016-08-31T12:39:59Z","updated_at":"2018-09-04T10:14:04Z","closed_at":"2016-09-05T07:13:50Z","author_association":"NONE","body":"I have one eureka-server running on a linux(testsrv1) machine. I'm able to register services when they run on the same linux machine. Now I want to register a service running on my localhost. But I'm bot able to register this service. \nI get this exception:\n\n```\n2016-08-31 09:17:31.917 ERROR 27105 --- [freshExecutor-0] c.n.d.s.t.d.RedirectingEurekaHttpClient  : Request execution error\ncom.sun.jersey.api.client.ClientHandlerException: java.net.ConnectException: Connection refused\nCaused by: java.net.ConnectException: Connection refused\n2016-08-31 09:17:31.917  WARN 27105 --- [freshExecutor-0] c.n.d.s.t.d.RetryableEurekaHttpClient    : Request execution failure\n2016-08-31 09:17:31.918 ERROR 27105 --- [freshExecutor-0] com.netflix.discovery.DiscoveryClient    : DiscoveryClient_RESERVATION-SERVICE/testsrv1.myDomain.lan:reservation-service:8002 - was unable to refresh its cache! status = Cannot execute request on any known server\ncom.netflix.discovery.shared.transport.TransportException: Cannot execute request on any known server\n2016-08-31 09:17:31.924 ERROR 27105 --- [tbeatExecutor-0] c.n.d.s.t.d.RedirectingEurekaHttpClient  : Request execution error\n```\n\nMy Eureka-Server has this properties:\n\n```\nspring.application.name=eureka-service\nspring.cloud.config.uri=http://myLocalMachine.myDomain.lan:8888\nserver.port=8761\neureka.client.register-with-eureka=false\neureka.client.fetch-registry=false\n```\n\nMy Client-service has this properties:\n\n```\nspring:\n  application:\n    name: reservation-service\n  cloud:\n    config:\n      uri: http://myLocalMachine.myDomain.lan:8888\nserver:\n  port: 8002\neureka:\n  client:\n    service-url:\n     defaultzone: http://testsrv1:8761/eureka/\n```\n\nThe Eureka-Server is abel to reach the cloud-config-files from my config-service running on localhost.\n\nIs there any configuration missing or do I need the cloud foundry?\n\nThanks in advance!\n"},"comment":{"url":"https://api.github.com/repos/spring-cloud/spring-cloud-netflix/issues/comments/418314492","html_url":"https://github.com/spring-cloud/spring-cloud-netflix/issues/1305#issuecomment-418314492","issue_url":"https://api.github.com/repos/spring-cloud/spring-cloud-netflix/issues/1305","id":418314492,"node_id":"MDEyOklzc3VlQ29tbWVudDQxODMxNDQ5Mg==","user":{"login":"coolmagic","id":10180040,"node_id":"MDQ6VXNlcjEwMTgwMDQw","avatar_url":"https://avatars3.githubusercontent.com/u/10180040?v=4","gravatar_id":"","url":"https://api.github.com/users/coolmagic","html_url":"https://github.com/coolmagic","followers_url":"https://api.github.com/users/coolmagic/followers","following_url":"https://api.github.com/users/coolmagic/following{/other_user}","gists_url":"https://api.github.com/users/coolmagic/gists{/gist_id}","starred_url":"https://api.github.com/users/coolmagic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/coolmagic/subscriptions","organizations_url":"https://api.github.com/users/coolmagic/orgs","repos_url":"https://api.github.com/users/coolmagic/repos","events_url":"https://api.github.com/users/coolmagic/events{/privacy}","received_events_url":"https://api.github.com/users/coolmagic/received_events","type":"User","site_admin":false},"created_at":"2018-09-04T10:14:04Z","updated_at":"2018-09-04T10:14:04Z","author_association":"NONE","body":"Well such a simple thing, was getting same issue and it was  this word in bold\r\neureka.client.service-url.**defaultZone**=http://localhost:9999/eureka/"}}
{"actor":{"display_login":"coolmagic"}}