Git Product home page Git Product logo

Comments (3)

deo-prime avatar deo-prime commented on May 9, 2024

如果主机的网卡配置是内网IP地址,除非消费者也在这个内网,否则是无法访问到提供者的。你的方法二出错是因为你的公网IP不是本机,只不过是因为公网IP通过路由器配置绑定在你这台主机上。我也尝试过使用hostname,然后让客户端配置hosts解析,但是不知道为什么提供者通过这样开放的服务只能在本机访问到,其他主机都访问不到。

from dubbo.

gMan1990 avatar gMan1990 commented on May 9, 2024

@xiaosilent

  1. 我和你同样的问题,买的windows云服务器(显示有静态公网IP的)
# 配置hosts,此处为举例
# hostToBind InetAddress.getLocalHost().getHostName()/hostname
x.x.x.x XXX
  • 可以这样解决:指定host参数(anyhost就等于flase了)
<dubbo:provider host="hostToBind" />
  • 但云服务器网卡显示的ip又不是公网IP,所以没发指定到host参数上,解决方案:
    zerotier ,麻烦的就是需要把所有要访问这台电脑的都加入到zerotier里
  1. 这个是类似问题么?#823

from dubbo.

ralf0131 avatar ralf0131 commented on May 9, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.