Command line peer to peer initiator script for Linux and macOS

You can learn about the differences between proxy and peer to peer (P2P) connections here:

and you can learn about the details of using the connectd daemon directly (on the command line or inside your own connection programs) to initiate peer to peer connections here:

The script which you can find here is a step above running the daemon directly on the command line, as it lets you simply log into your account with your username and password, and request a P2P connection to any service by name instead of by UID.

Review the file for info on downloading and running this program.

Also, the connection info is cached after the first time you make a connection, so that subsequent connections to the same service both use the same localhost port and don’t reqquire downloading of the device list, which saves time.

SSH connections will be established and then the SSH session will be initiated. For all other protocols, a connection address of the form will be generated and displayed. Use this connection info in your browser, VNC client, or other app. When you are done with the connection, hit the Enter key and it will disconnect.

1 Like