PHPFixing
  • Privacy Policy
  • TOS
  • Ask Question
  • Contact Us
  • Home
  • PHP
  • Programming
  • SQL Injection
  • Web3.0

Thursday, July 28, 2022

[FIXED] how to connect blockchain node over cloud?

 July 28, 2022     blockchain, cloud, go-ethereum, smartcontracts     No comments   

Issue

I am creating a one private blockchain network over cloud with the help of 2 ubuntu instances. But I am unable to connect 2 nodes. Even I have checked it with ping with its internal Ips and both are working perfectly.

I have follow below command to do that,

sudo geth --datadir="ethdata" --verbosity 10 --ipcdisable --port 30303 --networkid 15 --nodiscover console --allow-insecure-unlock --unlock "public address" --password password --http --http.port "8000" --http.addr "0.0.0.0" –http.corsdomain "*" --http.api "eth,net,web3,miner,debug,personal,rpc"

admin.addPeer("enode://7ac1...2337f8@xxx:xxx:xx:xxx:30303?discport=0")

Same Setup I have tried it over 2 different local system where I am able to connect it successfully.

Do anyone know about this ? is there any problem with ports over cloud or something else ? I have also tried it with different ports and network ids but could not able to connect it.


Solution

I am able to resolve this issue by adding ports into my security group over cloud. Before, I had added only one port 8000 into the security group, but face the same problem. After that I have added all the mentioned ports that I have used (8000 and 30303) for both nodes. As a result I am able to connect it blockchain node. Also tested with mining where blocks are synchronizing.



Answered By - Bhargav Lalaji
Answer Checked By - Cary Denson (PHPFixing Admin)
  • Share This:  
  •  Facebook
  •  Twitter
  •  Stumble
  •  Digg
Newer Post Older Post Home

0 Comments:

Post a Comment

Note: Only a member of this blog may post a comment.

Total Pageviews

Featured Post

Why Learn PHP Programming

Why Learn PHP Programming A widely-used open source scripting language PHP is one of the most popular programming languages in the world. It...

Subscribe To

Posts
Atom
Posts
Comments
Atom
Comments

Copyright © PHPFixing