These are chat archives for spring-cloud/spring-cloud

27th
May 2017
LIN
@magixsource
May 27 2017 08:25
Hi all,i can't visit eureka server by IP,but i can visit by localhost, my spring cloud version is 1.5.3.
allbutone
@SilentNight_R_twitter
May 27 2017 08:26
@magixsource so the IP you visited is ?
LIN
@magixsource
May 27 2017 08:27
my localhost ip 192.168.1.101
192.168.1.101 == 127.0.0.1 == localhost
:(
allbutone
@SilentNight_R_twitter
May 27 2017 08:28
have u tried 127.0.0.1 ?
LIN
@magixsource
May 27 2017 08:28
but when i change spring cloud version to 1.4.0, everything is ok
yes, i have tried 127.0.0.1,can't connect server
LIN
@magixsource
May 27 2017 08:36
any suggest ?
allbutone
@SilentNight_R_twitter
May 27 2017 08:37
maybe a bug or wrong config ? @dsyer
@magixsource better place your config here
LIN
@magixsource
May 27 2017 08:38
i have check config file more than once
spring:
    application.name: registry
server:
    port: 8761
eureka:
    client:
        register-with-eureka: false
        fetch-registry: false
        serviceUrl.defaultZone: http://localhost:${server.port}/eureka/
i really can't find what the point,haha
:)
allbutone
@SilentNight_R_twitter
May 27 2017 08:55
@magixsource serviceUrl.defaultZone: http://localhost:${server.port}/eureka/
LIN
@magixsource
May 27 2017 08:55
yes
same config, spring cloud 1.4.0 work well
allbutone
@SilentNight_R_twitter
May 27 2017 08:58
here's my config:
LIN
@magixsource
May 27 2017 09:01
i have try this, add eureka.instance.hostname and use http://${eureka.instance.hostname}:${server.port}/eureka/, not work in 1.5.3
allbutone
@SilentNight_R_twitter
May 27 2017 09:03
better upload your project to github and invite spring cloud guys to see whether it's a bug or not. open an issue maybe ?
Dave Syer
@dsyer
May 27 2017 09:14
It's not really clear what it is that doesn't work
You said registerWithEureka=false and fetchRegistry=false. So there's no interaction with eureka. And the service URL you provided is the local server anyway (so what's the point of that?).
LIN
@magixsource
May 27 2017 09:15
I HAVE NO IDEA
i can visit eureka server by http://localhost:8761/eureka/, but i can't visit it by http://127.0.0.1:8761/eureka/
i don't think this is springcloud bug,i guess there is something wrong in my local develop enveroment
Dave Syer
@dsyer
May 27 2017 10:37
Yep
Sergey Serdyuk
@neee
May 27 2017 19:58
Hello, I found https://gist.github.com/spencergibb/f233f912d7129c36969a0944da283267 and I have a question the problem has been already fixed?
Currenty, I use Camden