suffrajet opened a new issue #9737:
URL: https://github.com/apache/dubbo/issues/9737


   1、网络情况:
   #ifconfig
   docker0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
           inet 172.17.0.1  netmask 255.255.0.0  broadcast 172.17.255.255
           ...
   
   eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
           inet 192.168.0.26  netmask 255.255.255.0  broadcast 192.168.0.255
           ...
   
   lo: flags=73<UP,LOOPBACK,RUNNING>  mtu 65536
           inet 127.0.0.1  netmask 255.0.0.0
           ...
   2、dubbo服务启动日志:
   2022-03-04 19:15:08.402  INFO 17115 --- [           main] 
o.a.d.c.deploy.DefaultModuleDeployer     :  [DUBBO] Dubbo Module[1.1.0] has 
been initialized!, dubbo version: 3.0.5, current host: 172.17.0.1
   2022-03-04 19:15:08.413  INFO 17115 --- [           main] 
o.a.d.c.deploy.DefaultModuleDeployer     :  [DUBBO] Dubbo Module[1.1.1] has 
been initialized!, dubbo version: 3.0.5, current host: 172.17.0.1
   2022-03-04 19:15:08.419  INFO 17115 --- [           main] 
o.a.d.c.d.DefaultApplicationDeployer     :  [DUBBO] No value is configured in 
the registry, the MetadataReportFactory extension[name : nacos] supports as the 
metadata center, dubbo version: 3.0.5, current host: 172.17.0.1
   
   目标是要取到eth0的IP,但是始终获取到的是docker0的IP。
   
尝试配置protocol、provider下的host,不生效,尝试修改hostname,不生效,尝试配置-DDUBBO_IP_TO_REGISTRY,-DDUBBO_IP_TO_BIND,均不能解决问题。


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to