Replies: 7 comments 10 replies
-
From looking at the code, I can confirm this won't work, as the code is using python gethostbyname call here (in start_reconnect_task) which only supports IPv4. I will create an issue for this |
Beta Was this translation helpful? Give feedback.
-
Okay. Now that PR #8765 is in, the problem I described above is fixed, so that I can connect to a farmer via IPv6 address. But, names that resolve as IPv6 only will still fail. Additionally I'd like to be able to prefer IPv6 for hostnames that resolve to both. I propose that the config.yml have a boolean for each of "enable IPv6 address use/resolution", and "prefer IPv6 addresses". Then it would be easy to modify the code in the places I know of that call I can contribute this as a PR, but I need guidance for two things:
|
Beta Was this translation helpful? Give feedback.
-
Tagging @jack60612 and @hoffmang9 based on their input to #8765 |
Beta Was this translation helpful? Give feedback.
-
I don't think you need two config options. I think a single option just for "prefer IPv6 addresses" is better - the code should always look up both IPv4 and IPv6, and then finding IPv6 use that first if that pref is turned on, otherwise use IPv4. If the names only resolves to IPv4, use that regardless, if the name only resolves to IPv6, ditto. new config options are fine - you can add them into initial-config.yaml. |
Beta Was this translation helpful? Give feedback.
-
I wrote a resolver function in |
Beta Was this translation helpful? Give feedback.
-
PR #8861 |
Beta Was this translation helpful? Give feedback.
-
@cross , since this ticket was opened a number of years ago without further comments it seems this issue has been resolved. The best place to reach our support team is on Discord (https://discord.gg/chia) or by reopening this ticket. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
chia-blockchain 1.2.3, Ubuntu 20. installed from the .deb distribution here.
I have a harvester I'm trying to connect to a farmer peer in the same building. I have other harvesters connected via IPv4. This newest harvester is on a segmented IPv4 network, so I'm specifying the IPv6 address of the farmer as follows in my config.yml:
But, when I start
chia start harvester -r
the following appears on my terminal:Do I have the syntax wrong, or does IPv6 connections to farmer have an issue?
(
netstat -an | grep 8447
on the farmer showstcp6 0 0 :::8447 :::* LISTEN
amongsttcp LISTEN
and ESTABLISHED connections via IPv4. And I've verified I can establish the tcp connection usingtelnet
to that IPv6 address, port 8447.)Beta Was this translation helpful? Give feedback.
All reactions