discovery of incorrect IPv6 address #6375

issue Geremia opened this issue on July 4, 2015
  1. Geremia commented at 3:09 AM on July 4, 2015: none

    My bitcoin.conf file contains these flags:

    min=1
    server=1
    onion=127.0.0.1:9050
    listen=1
    discover=1
    

    getnetworkinfo says IPv6 is working on my node:

    {
    "name" : "ipv6",
    "limited" : false,
    "reachable" : true,
    "proxy" : "127.0.0.1:9050"
    }
    

    Yet, no IPv6 peers connect to my node, although many have in the past with this same bitcoin.conf configuration. Only IPv4 and a couple Onion peers currently connect.

    Also, getnetworkinfo says, for all my protocols (Onion, IPv4, & IPv6):

    "proxy" : "127.0.0.1:9050"
    

    Yet, only the Onion protocol should be going through the proxy (per the onion=127.0.0.1:9050 flag in my config file).

    I am running Bitcoin Core version v0.10.2 (64-bit).

    (cf. this BitcoinTalk.org thread and Bitcoin StackExchange question)

    Update: See my comment:

  2. Geremia renamed this:
    no IPv6 peers connect to my node (+ proxy issue)
    no IPv6 peers connect to my node (+ proxy issues)
    on Jul 4, 2015
  3. Geremia commented at 6:20 PM on July 4, 2015: none

    The issue was that bitcoind was discovering my wrong IPv6 address. It mistook my link IPv6 address for my public one. This appears to be a bug.

    I set --discover=0 and set my IPv4 and IPv6 addresses manually with --externalip.

  4. Geremia renamed this:
    no IPv6 peers connect to my node (+ proxy issues)
    discovery of incorrect IPv6 address
    on Jul 4, 2015
  5. laanwj added the label P2P on Jul 17, 2015
  6. laanwj commented at 8:18 PM on July 17, 2015: member

    I cannot reproduce the -onion issue on master. -onion=127.0.0.1:9050 gives:

        {
          "name": "ipv4",
          "limited": false,
          "reachable": false,
          "proxy": "",
          "proxy_randomize_credentials": false
        }, 
        {
          "name": "ipv6",
          "limited": false,
          "reachable": false,
          "proxy": "",
          "proxy_randomize_credentials": false
        }, 
        {
          "name": "onion",
          "limited": false,
          "reachable": true,
          "proxy": "127.0.0.1:9050",
          "proxy_randomize_credentials": true
        }
    

    Could be that this is fixed recently, but are you sure you're not accidentally passing a -proxy=XXX as well? -onion has existed for ages and this was never reported before. I also haven't ever noticed although I'm using it on one of my nodes.

    The IPv6 discovery problem is interesting. Since 0.10 it detects your external address from what peers report. However if it is using an proxy for all outgoing connections, it will never see it.

  7. laanwj closed this on Oct 27, 2015

  8. MarcoFalke locked this on Sep 8, 2021
Contributors
Labels

github-metadata-mirror

This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2026-04-17 09:15 UTC

This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me