docs/02_cleos/02_how-to-guides/how-to-connect-to-a-specific-network.md
This guide provides instructions on how to connect to specifc EOSIO blockchain when using cleos. Cleos can connect to a specific node by using the --url optional argument, followed by the http address and port number.
The examples use the --urloptional argument to send commands to the specified blockchain.
[[info | Default address:port]]
| If no optional arguments are used (i.e. no --url), cleos attempts to connect to a local nodeos running at localhost or 127.0.0.1 and default port 8888. Use the nodeos command line arguments or config.ini file to specify a different address.
Make sure you meet the following requirements:
cleos.
[[info | Note]]
| Cleos is bundled with the EOSIO software. Installing EOSIO will install the cleos and keosd command line tools.nodeos instance.See the following reference guides for command line usage and related options:
-url option to specify the nodeos instancecleos -url http://nodeos-host:8888 COMMAND
Where
-url http://nodeos-host:8888 = The http address and port number of the nodeos instance to connect tocleoscommand.In conclusion, by following these instructions you are able to connect to a specified nodeos instance.