eos icon indicating copy to clipboard operation
eos copied to clipboard

Connecting To one Nodeos using two cleos in the same network

Open yashvadhvani opened this issue 8 years ago • 2 comments

If i have a private node running in my pc how others can connect to the same is there any way in EOS to add peers or something similar.

yashvadhvani avatar Aug 01 '18 06:08 yashvadhvani

To allow others to access a node on your machine using cleos, in ~/.local/share/eosio/nodeos/config/config.ini change http-server-address = 127.0.0.1:8888 to http-server-address = 0.0.0.0:8888 and restart nodeos. This change has nodeos listen on all interfaces of the machine, including public interfaces, rather than solely localhost.

If you're accessing the nodeos machine using a DNS name, you may need to add matching http-alias = lines to that same config.ini.

jgiszczak avatar Aug 01 '18 17:08 jgiszczak

how can we change the host for nodeos? For example my nodeos is running on the azure server and now I want to connect it to my project. How can I do that. I have already given the default host and port that 127.0.0.1:8888. how to do this.

hasnat98044 avatar Mar 14 '19 10:03 hasnat98044