I have built geth from source code. Everything is fine but, when I am running a different node on same system and try to add a peer to the first one with the admin.addPeer
method, the method is returning true but the peercount is 0.
These are the two commands I am using:
build/bin/geth --rpc --rpcaddr "192.168.1.98" --rpcport "8000" --rpccorsdomain "*" --datadir "/opt/EthereumChain1" --port "30303" --maxpeers 2 --ipcapi "admin,db,eth,debug,miner,net,shh,txpool,personal,web3,solc" --rpcapi "db,eth,net,web3,personal" --networkid 1900 --nat "any" --unlock "0" console init genesis.json
build/bin/geth --rpc --rpcaddr "192.168.1.98" --rpcport "8045" --rpccorsdomain "*" --datadir "/opt/EtherChain2" --port "30302" --maxpeers 2 --ipcapi "admin,db,eth,debug,miner,net,shh,txpool,personal,web3,solc" --rpcapi "db,eth,net,web3,personal" --networkid 1900 --nat "any" console init genesis.json