| title | net connect | |||
|---|---|---|---|---|
| tags |
|
clio net connect <host> [OPTIONS]Start a new connection to a specified peer. A node operator can use this command to instruct a node to connect to another peer without restarting the node.
clio net connect
<host> # REQUIRED: The hostname:port of the peer to connect to
[-h | --help] # Print this help message and exitMake sure you meet the following requirements:
- Install the currently supported version of
clio.
:::note
The clio tool is bundled with the Wire software. Installing Wire core will install the clio and kiod command line tools.
:::
- You have access to a producing node instance with the
net_api_pluginloaded.
The following examples demonstrate how to use the clio net connect command:
- Instruct default local node (listening at default http address
http://127.0.0.1:8887) to connect to peer node listening at p2p addressdevnet-0:4444(wheredevnet-0is mapped to123.456.78.90in/etc/hosts):
clio net connect devnet-0:4444Output:
"added connection"- Instruct local node listening at http address
http://127.0.0.1:8887to connect to peer node listening at p2p addressdevnet-0:4444:
clio -u http://127.0.0.1:8887 net connect devnet-0:4444Output:
"added connection"Note: If any of the above commands are re-executed, clio returns the following message as expected:
"already connected"