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

Unable to configure P2P_ANNOUNCE_ADDRESSES for ipv6 #751

Open
TanLocc opened this issue Nov 15, 2024 · 4 comments
Open

Unable to configure P2P_ANNOUNCE_ADDRESSES for ipv6 #751

TanLocc opened this issue Nov 15, 2024 · 4 comments
Assignees
Labels

Comments

@TanLocc
Copy link

TanLocc commented Nov 15, 2024

My network provider uses a dynamic IP for all devices and assigns ipv6 identifiers to the devices.

And the problem is that my PC will only use ipv6 to configure P2P_ANNOUNCE_ADDRESSES, but the ipv6 provided to the device is dynamic, so my PC device keeps changing ipv6 address, so I have difficulty in configuring P2P_ANNOUNCE_ADDRESSES.

I hope that in the future, checking nodes will not need to configure P2P_ANNOUNCE_ADDRESSES, or someone can give me a solution to solve this problem.

@TanLocc TanLocc added the Type: Enhancement New feature or request label Nov 15, 2024
@alexcos20
Copy link
Member

Can you try to remove P2P_ANNOUNCE_ADDRESSES?

You can always check how your node sees the network (including announced & observed addresses) with something like:

curl http://localhost:8000/getP2pNetworkStats

but you would have to enable it by using export P2P_ENABLE_NETWORK_STATS=true

@TanLocc
Copy link
Author

TanLocc commented Dec 5, 2024

Can you try to remove P2P_ANNOUNCE_ADDRESSES?

You can always check how your node sees the network (including announced & observed addresses) with something like:

curl http://localhost:8000/getP2pNetworkStats

but you would have to enable it by using export P2P_ENABLE_NETWORK_STATS=true
Tôi đã remove P2P_ANNOUNCE_ADDRESSES, và thêm P2P_ENABLE_NETWORK_STATS=true trong docker-compose.yml, và đầy là đầu ra của :
curl http://localhost:8000/getP2pNetworkStats
{"binds":["/ip4/0.0.0.0/tcp/9000","/ip4/0.0.0.0/tcp/9001/ws"],"listen":["/ip4/127.0.0.1/tcp/9001/ws","/ip4/172.x.x.x/tcp/9001/ws","/ip4/127.0.0.1/tcp/9000","/ip4/172.x.x.x/tcp/9000"],"observing":[],"announce":[],"connections":[]}
But does removing P2P_ANNOUNCE_ADDRESSES affect node performance and rewards?

@alexcos20
Copy link
Member

looks like your node listens only on ip4, and not ipv6
Enable ipv6 please, and #794 might help you

@TanLocc
Copy link
Author

TanLocc commented Dec 17, 2024

@alexcos20 Yes I have to wait for the commit to be merged and build to the latest image to be able to use ipv6

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

No branches or pull requests

3 participants