Go to wherever you want to run this.
mkdir privatechain
cd privatechain/
touch genesis.json
mkdir data
bootnode --genkey=boot.key
bootnode --nodekey=boot.key
- Copy the info and replace in the next step
geth --datadir="data_directory_from_step_1" init genesis.json
geth --bootnodes="enode_info_from_step_3@your_ip_public_or_private:30301" --verbosity=6 console
geth --datadir="/home/itzco/Tech/blockchain/privatechain/data" init genesis.json
geth --bootnodes="enode://518a1f2661a344b2c6d5a2f618e3763110a224c47b7fcdf5fc78925dbf2807e3abaad136bbb7db67fe601f839e04bf2dc7d746aca773214b9b9b41bd7f25bbc3@192.168.8.57:30301" --verbosity=6 console
....
Seems to work with remote servers via public IP. Failed after a while with sync issues:
###References: Instaling ethereum on ubuntu or docker
Main reference for private network
Secondary:
Getting your public IP address
Connecting to your private network with mist
- https://ethereum.stackexchange.com/questions/2403/can-mist-be-attached-to-a-geth-node-on-a-different-computer-over-http-rpc
- https://ethereum.stackexchange.com/questions/3026/how-to-connect-mist-to-a-remote-private-network
- https://ethereum.stackexchange.com/questions/4418/how-to-change-to-private-network-in-etherum-wallet#4421
- https://github.com/ethereum/mist