Number of Peers

ETHashETHash Member Posts: 1
I am interested in the number of peers a client connects to. Where in the implementation does the client actually look for peers and connect to them? And where is the target number of peer connections set?
Thanks a lot!

Comments

  • shenfeizishenfeizi Member Posts: 3
    same question here.
  • ScripterRonScripterRon Member Posts: 3
    Specify '-maxpeers n' when starting geth to set the maximum number of peers. The default is 25.

    I run geth on both Ubuntu and Windows and notice that I very quickly get the maximum number of peers just from other nodes connecting to my node. This leads me to suspect that many nodes are not allowing inbound connections and are continuously searching for new nodes to connect to.
Sign In or Register to comment.