Probleme beim Verbinden einer Bitcoin-Qt-Wallet mit einem lokalen Knoten

Ich habe einen Bitcoin-Core-Knoten, der auf einem Raspberry Pi in meinem lokalen Netzwerk läuft. Der Knoten ist öffentlich sichtbar und läuft einwandfrei (ich kann ihn auf bitnodes.21.co sehen – er hat Verbindungen und ist mit dem neuesten Block synchronisiert).

Ich habe einen Windows-PC mit einer Bitcoin-Qt-Installation, den ich nur mit dem lokalen Knoten verbinden möchte, nur wenn ich ihn starte, scheint er keine Verbindung herzustellen. Ich starte es von einer Befehlszeile aus mit

bitcoin-qt.exe -connect 192.168.0.6

Die GUI sagt nur "Connecting to peers" und Help > Debug zeigt 0 Verbindungen.

Ich kann den Pi vom Windows-Rechner aus pingen und ich kann vom Windows-Rechner aus eine Telnet-Verbindung zu Port 8333 auf dem Pi herstellen, daher glaube ich, dass die Netzwerkkonnektivität nicht das Problem ist.

Irgendwelche Ratschläge, wie man diagnostizieren kann, was los ist? (RPC-Befehle? Protokolle?)

Verwende ich den richtigen Befehl, um eine Verbindung herzustellen?

Antworten (1)

Möglicherweise müssen Sie einige Zeilen in der Datei bitcoin.conf auf dem Raspberry Pi hinzufügen. Dies wurde dem Github-Repo-Beispiel der Datei bitcoin.conf entnommen

##############################################################
##            Quick Primer on addnode vs connect            ##
##  Let's say for instance you use addnode=4.2.2.4          ##
##  addnode will connect you to and tell you about the      ##
##    nodes connected to 4.2.2.4.  In addition it will tell ##
##    the other nodes connected to it that you exist so     ##
##    they can connect to you.                              ##
##  connect will not do the above when you 'connect' to it. ##
##    It will *only* connect you to 4.2.2.4 and no one else.##
##                                                          ##
##  So if you're behind a firewall, or have other problems  ##
##  finding nodes, add some using 'addnode'.                ##
##                                                          ##
##  If you want to stay private, use 'connect' to only      ##
##  connect to "trusted" nodes.                             ##
##                                                          ##
##  If you run multiple nodes on a LAN, there's no need for ##
##  all of them to open lots of connections.  Instead       ##
##  'connect' them all to one node that is port forwarded   ##
##  and has lots of connections.                            ##
##       Thanks goes to [Noodle] on Freenode.               ##
##############################################################

# Use as many addnode= settings as you like to connect to specific peers
#addnode=69.164.218.197
#addnode=10.0.0.2:8333

# Alternatively use as many connect= settings as you like to connect ONLY to specific peers
#connect=69.164.218.197
#connect=10.0.0.1:8333

# Listening mode, enabled by default except when 'connect' is being used
#listen=1

# Maximum number of inbound+outbound connections.
#maxconnections=

#
# JSON-RPC options (for controlling a running Bitcoin/bitcoind process)
#

# server=1 tells Bitcoin-Qt and bitcoind to accept JSON-RPC commands
#server=0