I have two ubuntu systems with ethereum installed. I started the node in each system using the following command : -
geth --datadir 'path of node folder' init 'path of genesis.json' geth --datadir 'path of node folder' --networkid 12512 console
The systems are connected to a local network. The genesis file in both the systems are same. The time is in sync. But when I execute admin.addPeer("enode@ip:port"), I am getting net.peerCount as 0. There was no error while pinging the ip from one system to the other. Executing 'netstat -ntpl' gave the following:
machine 1: tcp6 0 0 :::30303 :::* LISTEN 3423/geth machine 2: tcp6 0 0 :::30303 :::* LISTEN 3028/geth
Any help is appreciated.