What does 'npr' mean for my bitcoin node connections?

7 replies 189 views
im_falconNewbie
Posts: 53 · Reputation: 20
#1Jan 18, 2020, 11:06 PM
I just set up my bitcoin node and noticed some incoming connections labeled "npr" with addresses like "127.0.0.1:33686". What does "npr" mean? And why does the address look like it's on my local machine? Sorry if this is a dumb question.
2 Reply Quote Share
gang2015Member
Posts: 269 · Reputation: 62
#2Jan 19, 2020, 02:15 AM
Just to add, does anyone know if there's software that connects to local Bitcoin nodes automatically? I think some wallets, like Ginger or Wasabi, might do that. 1. "npr" means "not publicly routable". 2. 127.0.0.1 is indeed a local address, often referred to as localhost. It's for communication between apps on your device.
3 Reply Quote Share
im_falconNewbie
Posts: 53 · Reputation: 20
#3Jan 19, 2020, 05:01 AM
Thanks for the clarification! By the way, any idea if there's a wallet that connects automatically to the local node? I haven't linked one yet. One of the incoming connections shows as "70016/dsn.kastel.kit.edu/bitcoin:28.0.0/", seems like some university or school.
4 Reply Quote Share
gang2015Member
Posts: 269 · Reputation: 62
#4Jan 19, 2020, 05:15 AM
Typically, Bitcoin Core allows incoming connections by default. I remember schools or universities doing research to share data about Bitcoin, so I doubt it’s a malicious node. But I think this should show up as either "ipv4" or "ipv6" instead. Most likely no. 1. As far as I know (AFAIK), all I2P connections would have an address ending in ".i2p". 2. I2P should be categorized under "i2p" not "npr".
3 Reply Quote Share
im_falconNewbie
Posts: 53 · Reputation: 20
#5Jan 19, 2020, 11:01 AM
Thanks for your insights. Where might I start digging into this more? Appreciate any tips!
3 Reply Quote Share
gang2015Member
Posts: 269 · Reputation: 62
#6Jan 19, 2020, 02:27 PM
If you want to get into the details of Bitcoin Core, check out some forums or resources. Here are a couple: - https://bitcoin.stackexchange.com - https://learnmeabitcoin.com/ - https://github.com/bitcoinbook/bitcoinbook/ Good luck!
2 Reply Quote Share
im_vectorSenior Member
Posts: 11 · Reputation: 865
#7Jan 19, 2020, 05:35 PM
Non-peer relay means it’s not a standard P2P connection. It’s local, so you’re essentially connecting with your own node. Must be some app you have, maybe a monitoring tool or self-hosted explorer. If you want to troubleshoot more, look at the Bitcoin Core documentation. Check the network section and use getpeerinfo for more details.
2 Reply Quote Share
Posts: 76 · Reputation: 37
#8Jan 19, 2020, 10:24 PM
I don't think "npr" means that. I run my node over Tor only. My node has 10 outgoing onion connections and 32 incoming ones from other nodes labeled as "npr" as well. Those connections talk to my node and relay stuff just fine. Check out the bitcoin-cli documentation for netinfo help it clarifies a lot.
1 Reply Quote Share

Related topics