I'm trying to follow the instructions on this blog to get a private Ethereum network running on my Windows machine. https://btcblockchain.wordpress.com/2017/09/27/how-to-run-private-ethereum-blockchain-on-windows/ Maybe later I'll try Docker in the future, but for now I just want to follow this blog. This example requires having two chain in two different folders; I ran the command to setup the genesis.json on each, and that ran fine.
Error:
Fatal: Error starting protocol stack: listen udp :30303: bind: Only one usage of each socket address (protocol/network address/port) is normally permitted.
I've seen variations of this issue on this site, but usually with Mist wallet.
My directories are slightly different from that blog, so these are the two commands I ran.
geth -datadir="e:\Ethereum\ParityWinDev\node1" -verbosity 3 –port 30301 –rpcport 8101 –rpc –rpcapi eth,web3,personal,net –identity “MyNode” –networkid 2001 console
This is still running in a command window when I try the second one below.
geth -datadir="e:\Ethereum\ParityWinDev\node2" -verbosity 3 –port 30302 –rpcport 8102 –rpc -rpcaddr "0.0.0.0" -ipcdisable -networkid 2001 console
I don't understand why it's complaining about port 30303 when I specified 30302. I've seen other samples where people use --port as well, so not sure why this sample had just one dash in front of the word "port".
There is no ipc file in any of the node1 subdirectories.
Note: I was running Parity Wallet on the production node at the same time. I killed those processes, and got same error.
Update 1: Adding screenshot from Resource Monitor showing ports: