[Ethereum] How to search for the IP addresses of nodes closest to me

nodes

In order for maximum latency I would like to identify the nodes closest to my location. Is there a way I cant find nearby nodes on a map and create a list of them based on distance?

Best Answer

I would:

  1. set up a supernode to get as many peers as possible, this question gives you the command
  2. list peers with a script like below once you have enough peers
  3. Use BatchGeo to display the ips accessible in the json you got in point 2, otherwise you can look at that answer that will enable you to link ips to lat/lng

    #!/bin/sh geth attach << EOF function getPeers() { console.log(JSON.stringify(admin.peers, null, "")) }; getPeers() EOF

Related Topic