Basically I would like to know how to configure geth so that it can only connect to my private ethereum blockchain that is hosted on another machine?
Many thanks in advance!
Basically I would like to know how to configure geth so that it can only connect to my private ethereum blockchain that is hosted on another machine?
Many thanks in advance!
geth can only connect to one blockchain. Unless you pass a different port and a different path for the data directory.
to connect to your private blockchain just get the enodes addresses and the machine external ip (ports should be opened) and pass it in geth
for example
geth --datadir ~\.space --networkid 1337 --bootnodes=enode://42aa0f3f526ed619032e0c1b3526e15b20df4dc0229f9a6f991e6f31d86561dfb2d5d14d36dcaa29867a31709ab0d7e0fc868eb6d7dde344116318386aeb87d5@YOUR_EXTERNAL_IP:30304 --rpc --rpcapi admin,db,eth,net,web3,personal,txpool --shh --ws --rpcaddr localhost --rpcport 8545 --rpccorsdomain "*"