This kind of issue is duplicate. You can search the issues of this repository. In my opinion, multi-network cards are really hard to choose, the logic of return `InetAddress` in dubbo depends on **hostname firstly**. so make sure your available IP, and look up your hostname(you can use the command `hostname` in Mac, Linux, Windows). configure them in your `hosts` file like this: ``` 1.2.3.4 xujingfengdeMacBook-Pro.local ``` `1.2.3.4` is what you really want to register in the registry.
Source code can tell you more details about the logic of choosing `InetAddress`, pls debug into `org.apache.dubbo.common.utils.NetUtils.getLocalAddress()`. [ Full content available at: https://github.com/apache/incubator-dubbo/issues/2648 ] This message was relayed via gitbox.apache.org for [email protected]
--------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
