You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@dubbo.apache.org by "gMan1990 (GitHub)" <gi...@apache.org> on 2018/11/24 15:48:28 UTC

[GitHub] [incubator-dubbo] gMan1990 commented on issue #69: Dubbo2.5.3在windows下不能使用公网IP注册服务

@xiaosilent 
1. 我和你同样的问题,买的windows云服务器(显示有静态公网IP的)
  * 运行后,telnet 公网ip port 是通的
  * 配置hosts不生效的
https://github.com/apache/incubator-dubbo/blob/38e0f15be33a5edb35b45d2c5d7c6be753bdd888/dubbo-config/dubbo-config-api/src/main/java/com/alibaba/dubbo/config/ServiceConfig.java#L574
```text
# 配置hosts,此处为举例
# hostToBind InetAddress.getLocalHost().getHostName()/hostname
x.x.x.x XXX
```
  * 可以这样解决:指定host参数(anyhost就等于flase了)
```xml
<dubbo:provider retries="5" timeout="500000" host="hostToBind" />
```
  * 但云服务器网卡显示的ip又不是公网IP,所以没发指定到host参数上,解决方案:
[zerotier](https://www.appinn.com/zerotier-one/) ,麻烦的就是需要把所有要访问这台电脑的都加入到zerotier里
2. 这个是类似问题么?https://github.com/apache/incubator-dubbo/issues/823

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