Connection Error - Couldn't connect to ethereum node on AWS at

kirtikirti Member Posts: 3
We setup ethereum node on AWS Ubuntu Server 16.04 LTS (HVM) EC2 instance and configured it in the standard way before launching the geth console using the below command:
sudo geth --identity "EthereumMain" --datadir ~/.ethereum_private/ --networkid "123" --verbosity 3 --nodiscover --rpcapi "admin,db,eth,debug,miner,net,shh,txpool,personal,web3" --rpccorsdomain "*" --rpc --port "30301" --rpcport "8545" --rpcaddr "" --nat "any" console 2>> ~/fm-ethchain/fm-ethchain.log

(Basically we tried to incorporate all the suggestions we found on various forums and websites to solve the problem!! )

Now, when we try to connect to this node from lambda function using the web3:
var web3 = new Web3( new Web3.providers.HttpProvider('') );

We keep getting the following error:

CONNECTION ERROR: Couldn't connect to node (where is the public IP address of the EC2 instance).

Can somebody please specify what is the mistake or what is it that we are missing?


  • slaeyaslaeya New ZealandMember Posts: 12
    have you checked your FW and are you seeing packets arriving at the destination? (assuming your looking for these on the destination as opposed to claiming they were sent)
  • kirtikirti Member Posts: 3
    Hey @slaeya .. Thank you for responding! Unfortunately we are behind a corporate FW and so we can't see or track the packets! :(
  • slaeyaslaeya New ZealandMember Posts: 12
    On your ubuntu server you could take a pcap and itll capture anything on the Ethernet interface. As long as you know what ip you're attempting to connect to the node from id be more than happy to analyse the data for you. Itd only take me a min or two
  • kirtikirti Member Posts: 3
    Hi @slaeya .. Thanks a lot for offering to help! Appreciate it.. We do know the IP address of the node (on AWS) which we are trying to connect from the lambda function (again on another AWS account). But I am curious about how we can synchronize the testing, as in we trying to connect and you helping us analyze the data, using pcap?
  • slaeyaslaeya New ZealandMember Posts: 12
    you can get me off board on Telegram, Line, Hangouts user: slaeya
Sign In or Register to comment.