Dubbo has supported Providers to register their host to the registry server, 
and registry server can automatically get the IP by host name.
 Firstly config the host name of provider in the xml configuration file, the 
configuration can be: <dubbo:protocol name="dubbo" port="20880" 
host="localhost"/>.
Then ContextFilter obtains the IP of provider through the NetUtil.getIpByHost 
method. You could try like this. 

[ Full content available at: 
https://github.com/apache/incubator-dubbo/issues/2043 ]
This message was relayed via gitbox.apache.org for [email protected]

Reply via email to