Comments (3)
如果主机的网卡配置是内网IP地址,除非消费者也在这个内网,否则是无法访问到提供者的。你的方法二出错是因为你的公网IP不是本机,只不过是因为公网IP通过路由器配置绑定在你这台主机上。我也尝试过使用hostname,然后让客户端配置hosts解析,但是不知道为什么提供者通过这样开放的服务只能在本机访问到,其他主机都访问不到。
from dubbo.
- 我和你同样的问题,买的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
# 配置hosts,此处为举例
# hostToBind InetAddress.getLocalHost().getHostName()/hostname
x.x.x.x XXX
- 可以这样解决:指定host参数(anyhost就等于flase了)
<dubbo:provider host="hostToBind" />
- 但云服务器网卡显示的ip又不是公网IP,所以没发指定到host参数上,解决方案:
zerotier ,麻烦的就是需要把所有要访问这台电脑的都加入到zerotier里
- 这个是类似问题么?#823
from dubbo.
Please check: https://github.com/apache/incubator-dubbo/wiki/FAQ, in the "How to register ip correctly in docker" section.
Under windows you can use:
SET DUBBO_IP_TO_REGISTRY=8.8.8.8
from dubbo.
Related Issues (20)
- [Bug] 3.2.12 The consumer does not automatically reconnect to the triple stream after the provider restarts HOT 6
- [Feature] [Dubbo-python] Code style and CI process updates
- [Feature] Update issue template
- [Feature] TotalPendingBytes size overflow Exception HOT 1
- [Bug] The sample code dubbo samples SSL on the official website cannot pass one-way authentication, but can be executed normally with two-way authentication configuration HOT 1
- [Bug] dubbo-3.3.0-beta5 start warning exporterMap can not be null HOT 2
- [Bug] ConfigurableMetadataServiceExporter.export cause IndexOutOfBoundsException HOT 1
- [Bug] In native-image mode,ApplicationModel.defaultModel().getApplicationConfigManager().getProtocols() is empty.
- Dubbo Java 2.7.1 occasionally problem. When the provider of dubbo deploying, and the IP is changed. The new provider's IP has been pushed to dubbo, but the error shows that the consumer still sends requests to the old IP that has been offline. HOT 2
- [Bug] Dubbo 2.7.23 Consumer not consuming properly when provider custom extends Dispatcher HOT 2
- dubbo rpc调用中使用get/post,ssl异常
- [Feature] Best Practices for Using Dubbo Stream
- [Bug] After running for a period of time, the provider is lost.
- [Bug] java.util.ArrayList cannot be assigned to 'java.util.List' HOT 2
- [Bug] 多注册中心下,一个注册中心挂了 导致客户端无法调用服务端,报cannot invoker Registry.getUrl Because this.url is null HOT 3
- [Bug] In Dubbo 3.3.0 & 3.2.16, when using AsyncContext for asynchronous service processing, during a loop of 10,000 iterations, a java.util.concurrent.RejectedExecutionException: null is occasionally thrown. HOT 1
- [Bug] In the Dubbo interface, the parameter type is defined as the parent class, but when the caller invokes the remote interface method, a subclass is passed as the parameter. This leads to an inability to deserialize the paramete HOT 2
- [Bug] application/x-www-form-urlencoded There is a problem with parameter parsing
- [Bug] Registry. check=false is not available under multiple registration centers HOT 1
- [Bug] In the Dubbo interface, the parameter type is defined as the parent class, but when the caller invokes the remote interface method, a subclass is passed as the parameter. This leads to an inability to deserialize the parameter HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dubbo.