Post
Topic
Board Development & Technical Discussion
Re: Checking Remote Node Availability
by
mmortal03
on 08/02/2016, 23:03:37 UTC
You can run the same tool used on Bitnodes locally to probe a Bitcoin client. Change the destination IP and port in https://github.com/ayeowch/bitnodes/blob/master/protocol.py#L505 and run python protocol.py. Feel free to modify the script to accept command-line argument, e.g. python protocol.py IP PORT as needed.


Does anyone know what the services number means that is returned by the bitnodes protocol.py handshake?


Btw, I was able to get this to work with Python on Windows. Here's what worked for me:

Install Python 2.7 from Python.org
Install VCForPython27.msi from Microsoft.com
Download and extract bitnodes-master from GitHub

Where you extracted it on your computer, run:
pip install -r requirements
pip install win_inet_pton

Finally, add "include win_inet_pton", without quotes, near the top of protocol.py with the rest of the include lines

Now, on the commandline, you can run "python protocol.py", without quotes, editing the code under the main function of protocol.py with the IP address and port, as necessary.