I am setting up eosio on my mac and when I try to run tail -f nodeos.log I get this error ::plugin_startup failed to bind to port "
1 Answer
There are two ports used by nodeos, p2p connection (9876) and http connection (8888). You can change them by adding options when you execute nodeos like:
nodeos --p2p-listen-endpoint=0.0.0.0:9876 --http-server-address=0.0.0.0:8888
^^^^ ^^^^
change number here here too
You can put those options into config.ini of nodeos. If you want to allow http connection within localhost only, set http-server-address
to 127.0.0.1:PORT
instead of 0.0.0.0:PORT
.
-
Ok, I am trying to put those options into config.ini and I am still getting the same error message. I think I don't have it in the right place. Commented Jun 16, 2020 at 20:28
-
Also what do i change the numbers too because i tried to run what you provided me and i still see the same error Commented Jun 16, 2020 at 20:30
-
Oh, you need to use different numbers in example, not 9876 and 8888. Change them to any other numbers.– conr2dCommented Jun 17, 2020 at 5:26
-
-
What connection? If you mean cleos, you need to set url explicitly, because cleos tries to connect to 127.0.0.1:8888 by default. Try
cleos -u http://127.0.0.1:YOUR_CHANGED_PORT get info
.– conr2dCommented Jun 18, 2020 at 13:51