Common Problems With Connectivity
Sometimes you just can't get connected. The most common reasons are as follows:
- Your local time might be incorrect. An accurate clock is required to participate in the Ethereum network. Check your OS for how to resync your clock (example sudo ntpdate -s time.nist.gov) because even 12 seconds too fast can lead to 0 peers.
- Some firewall configurations can prevent UDP traffic from flowing. You can use the static nodes feature or admin.addPeer() on the console to configure connections by hand.
In my opinion, the most likely reason is connectivity issue, where the firewall of the EC2 is blocking the traffic to go out or in. Run the following commands:
And check if the ports used by Geth to connect your peers are correctly open.