I've had to manually add nodes in a private cluster even though I'm specifying the same networkid, but then again clients have been running different versions.
If on Linux/UNIX check your max open file limit. Socket connections require a few of those and your geth process has to share with the leveldb reader/writer.
I've tried using --maxpeers "25" with no success, so I tried opening port 30303:
1. Set up the firewall on the server to open port 30303/tcp. 2. Set up port forwarding on the router to the server. 3. Tested that the port is indeed open (through an online port checking service)
At first it remained at 12 peers, sometimes hitting 13, for over an hour, but after a restart of Geth it slowly climbed to 16 peers in some 30 minutes.
Answers
> web3.net.peerCount
2
How can I increase the peer count?
instance: Geth/v1.0.0/windows/go1.4.2
datadir: C:\Users\fly\AppData\Roaming\Ethereum
coinbase: 0xa850c5af189e99871ec072b08fc5c91fd14fc2eb
at block: 27991 (2015-08-03 18:27:03)
modules: admin:1.0 db:1.0 debug:1.0 eth:1.0 miner:1.0 net:1.0 personal:1.0 shh:
1.0 txpool:1.0 web3:1.0
> web3.net.peerCount
1
I redownloaded the genesis block and flushed the roaming files. Then I set up a new geth account.
Number of peers is growing very slowly
> web3.net.peerCount
1
> web3.net.peerCount
2
> web3.net.peerCount
2
> web3.net.peerCount
4
Thanks
edit:
25 min later...
> web3.net.peerCount
10
edit
30 min later...
and I've topped out
> web3.net.peerCount
11
> web3.net.peerCount
11
> web3.net.peerCount
8
1. Set up the firewall on the server to open port 30303/tcp.
2. Set up port forwarding on the router to the server.
3. Tested that the port is indeed open (through an online port checking service)
At first it remained at 12 peers, sometimes hitting 13, for over an hour, but after a restart of Geth it slowly climbed to 16 peers in some 30 minutes.
I run cpp-ethereum on linux and without changing anything, I always end up with 76-77 peers.