connect the chain created on aws to the local system

+1 vote
I have created a chain on my AWS instance:

multichain-util create chain1 -datadir="node1"

then, changed the default-network-port to 8080 and rpc-port to 8000 in params.dat file

Started the chain :

sudo multichaind chain1 -datadir="node1" -daemon

I got a command to connect to it:

multichaind chain1@XXX.XX.XX.XXX:8080

Run the above command in local system and got error message like:

"Error: Couldn't connect to the seed node XXX.XX.XX.XXX on port 8080 - please check multichaind is running at that address and that your firewall settings allow incoming connections."

Note: Vice-versa is connecting successfully.

Anyone knows how to fix it?
asked Jul 12, 2017 by Dimple Kanwar
reopened Jul 12, 2017 by Dimple Kanwar

1 Answer

+2 votes
 
Best answer
That's because of the firewall in AWS instance. You need to modify the security group and allow traffic for those ports. For more details, http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/authorizing-access-to-an-instance.html

Also, the IP mentioned on the terminal should not be used to connect from local computer. Use IPv4 public IP mentioned on your AWS dashboard.
answered Jul 12, 2017 by jagrut.kosti
selected Jul 12, 2017 by Dimple Kanwar
It worked.I was using private ip of the aws instance to connect.So, I changed it to public ip and it worked.
Is there any configuration we can do so that I returns public ip instead of private ip?
As far as I know that would not be possible as all EC2 instances run behind Amazon's NAT infrastructure.
...