Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dubbo3.0starter多网卡情况下会随机选择IP绑定端口而没有绑定到0.0.0.0导致无法访问 #807

Open
zuozhiwen opened this issue Nov 9, 2021 · 2 comments

Comments

@zuozhiwen
Copy link

dubbo-spring-boot-starter 3.0.4及一下,在多网卡的情况下会随机选择IP绑定端口,即使通过设置

dubbo.provider.host = ${HOSTNAME}

本质上还是会从底层随机选择IP绑定,这样即使在服务发现里面看上去是正常的,但是由于IP没绑定对,导致无法通讯。
建议:
多网卡的情况下,直接将端口绑定到0.0.0.0。

@AlbumenJ
Copy link
Member

https://dubbo.apache.org/zh/docs/advanced/set-host/

@zuozhiwen
Copy link
Author

https://dubbo.apache.org/zh/docs/advanced/set-host/

DUBBO_IP_TO_REGISTRY DUBBO_PORT_TO_REGISTRY这个就没有等效的配置项吗,一定得通过环境变量统一管理就很费力

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants