I want to deploy a smart contract on my local network. I executed a local node via

   PRIVATE_CONFIG=ignore nohup geth --datadir ./Node1/new- 
   --nodiscover --verbosity 5 --networkid 31337 --raft -- 
   raftport 51001 --rpc --rpcaddr --rpcport 22101 -- 
   quorum,raft --emitcheckpoints --port 21101 2>>node1.log &

I have to use localhost:\ or 22101? I want to know the difference betwwen the two ports and what are used for?

An other question if you don't mind: When i use the port 21101, it fails to connect and when I consult the node log I find :

    Failed RLPx handshake addr=[::1]:42552  conn=inbound    
    err="read tcp [::1]:21102->[::1]:42552:  i/o timeout"

Remix, like most of Ethereum wrappers access node via RPC API. To connect remix, you would tell it to connect on port 22101 as this is what you define to be your rpc port. The only other caveat is that you may need to add --rpccorsdomain flag as well to your set up.

We have a number of helpful presentations that would help you here: https://drive.google.com/folderview?id=17CAe2A0-2k-4UWMAuLF5fIwPxIbWt12d -- in particular, take a look at the using public tools with quorum.

  • thank you very muc, it was about --rpccorsdomain . Do you know what the port 21101 is used for?
    – MS B
    Jun 4 '19 at 15:54
  • Yes, the --port defines the DEVP2P layer networking -- this is the API that other nodes use to connect to your node and share info such as txns and blocks
    – fixanoid
    Jun 4 '19 at 17:17

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.