2

I have two ethereum full nodes in Rosten network with non-default port (not 30303).

One has net.peerCount = 3, the next one has net.peerCount = 0 and I can't sync it more then 24 hours.

Also, I have one geth node in MainNet with a non-default port as well. It has net.peerCount = 6 more than 24 hours.

If I change the port to 30303, can it increase the number of peers for my nodes?

1 Answer 1

1

I did not find anything in the official documentation (and also in the geth source code) that suggests, that changing the default port will make other peers refuse to connect to some other peers.

The reason is probably due to many factors. Here, I report the ones I individuated:

  1. There are not enough peers, e.g. in Ropsten, as reported in this github issue
  2. The other nodes are using a reputation system, as reported in the documentation:

Node identity and reputation The identity of a ÐΞVp2p node is a secp256k1 public key. Nodes are free to store ratings for given IDs (how useful the node has been in the past) and give preference accordingly. Nodes may also track node IDs (and their provenance) in order to help determine potential man-in-the-middle attacks. Clients are free to mark down new nodes and use the node ID as a means of determining a node's reputation.

Maybe, your peers are not always online, and so the other peers find your peers not so useful and their reputation is not so high.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.