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

Bind ipv4 address failure #3872

Closed
pei-han opened this issue Oct 25, 2024 · 2 comments
Closed

Bind ipv4 address failure #3872

pei-han opened this issue Oct 25, 2024 · 2 comments

Comments

@pei-han
Copy link

pei-han commented Oct 25, 2024

i read spring cloud alibaba document seriously,it says using spring.cloud.nacos.discovery.network-interface and ip-type property can bind ipv4 address,but by experiment that is false.

can you guys help me?Any suggestions i appreciate.

Which Component
spring cloud alibaba discovery version 2021.0.5.0
nacos version 2.3.0-beta

Describe the bug
Binding ipv4 address does not work in virtual host with mutiple ethernet cards.
在多网卡的虚拟主机上,绑定ipv4地址失败,绑定了ipv6地址。

Simplest demo
The URL of the simplest demo to reproduce the problem.

To Reproduce
Steps to reproduce the behavior:
bootstrap.yml configuration file screenshot below.
image
this service detail in nacos looks like below.
image

ip address list below
image

Expected behavior
i expect the ipv4 address 172.18.18.92 in ip column of table.
预期在服务表格的ip一列应该是ipv4地址。
Screenshots
If applicable, add screenshots to help explain your problem.

Additional context
jdk1.8.45,os version centos 6.5
spring-boot version 2.7.13
spring-cloud version 2021.0.8

@yuluo-yx yuluo-yx added kind/question area/nacos spring cloud alibaba nacos labels Oct 26, 2024
Copy link

This issue has been open 30 days with no activity. This will be closed in 7 days.

@github-actions github-actions bot added the stale label Nov 25, 2024
Copy link

github-actions bot commented Dec 3, 2024

This issue has been automatically marked as stale because it hasn't had any recent activity.If you think this should still be open, or the problem still persists, just pop a reply in the comments and one of the maintainers will (try!) to follow up. Thank you for your interest and contribution to the Sping Cloud Alibaba Community.

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

No branches or pull requests

2 participants