alibaba / spring-cloud-alibaba

Spring Cloud Alibaba provides a one-stop solution for application development for the distributed solutions of Alibaba middleware.
https://sca.aliyun.com
Apache License 2.0
27.77k stars 8.3k forks source link

dubbo+nacos configuration 'spring.cloud.nacos.discovery.ip' doesn't work while dubbo consumers invoke the provider #729

Open kennywgx opened 5 years ago

kennywgx commented 5 years ago

Which Component Nacos Discovery + Spring Cloud Dubbo

Describe the bug I want to export my dubbo service to the foreign net ip, so that I can invoke it from another computer in different machine room. I configured 'spring.cloud.nacos.discovery.ip=192.168.1.122' in my dubbo provider application as the wiki said, but the dubbo consumer used the ip '192.168.137.1' instead of '192.168.1.122' to invoke the service provider.

Here is the logs: image

And Nacos console shows like this: image

fangjian0423 commented 5 years ago

It will be enhanced in the future.