Option 1: connectd P2P initiator using command line parameters (Linux/macOS)

 Example command line

connectd -s -p \ 
BASE_64_USER \
AUTHHASH \
UID \
BIND_PORT \
ENCRYPTION_MODE \
LOCAL_HOST_ADDRESS \
RESTRICTEDCONNECTIP
\ MAXOUTSTANDING \ PROXYLIFETIME \ IDLE-LIMIT

Options

Option

Description

-p Run using command line parameters with authhash
-s Show connection status (optional)

 

Parameters

Parameter Description
BASE_64_USER Your Base64 encoded username (probably your e-mail)
AUTHHASH Your remote.it account authhash
UID The UID (also called address or Service ID) of the service you want to connect to
BIND_PORT The port you want to bind the connection to on your local machine (e.g. 33000)
ENCRYPTION_MODE

The level of encryption to use. The choices are:

  • 0 = no encryption

  • 1 = RC4

  • 2 = XXTEA

NOTE: Please use mode 2. Modes 0 and 1 are not secure.

LOCALHOST_ADDRESS

The address to bind to on your local network. This is normally 127.0.0.1.

RESTRICTEDCONNECTIP

If you wish to allow other users on your LAN to access this P2P connection, set this to "0.0.0.0"

to allow connections from any network interface, or the IP address of a specific interface to allow

only incoming connections on that interface. To allow only the local machine to use this P2P

connection, set this value to "127.0.0.1".

MAXOUTSTANDING Maximum number of packets outstanding on a connection. Set to 40.
PROXYLIFETIME The number of minutes this proxy should last. Set this to 0 for no limit.
IDLE-LIMIT

The amount of time to wait if there are no active tunnels before terminating the connection.

Set this to 0 for no limit. The setting for PROXYLIFETIME still applies.

 

Example 1

connectd -s -p \
eW91cm5hbWVAZXhhbXBsZS5jb20= \ # Base64 encoded username/email
c3VwM3JzZWtyZXQh \             # plain text authhash
80:00:00:00:00:00:00:F1 \      # Service UID on remote.it
T33000 \                       # Port to bind to, prefixed with "T"
2 \                            # Encryption mode = XXTEA
127.0.0.1 \                    # Localhost address
0.0.0.0 \ # RESTRICTEDCONNECTIP, allow incoming connections from any interface 35 \ # MAXOUTSTANDING 0 \ # proxy lifetime, 0 = no limit 0 # limit if no active tunnels, 0 = no limit

Once the connection is established, (approximately ten seconds) you will see:

...
Starting Proxy on port 33000 on index 1.
Proxy started.

 

 

Parameters are the same as used in the previous example.

The above command all on one line is:

Now you can use your P2P connection using 127.0.0.1 on port 33000. For example, you can type 127.0.0.1:33000 in a browser window for a web application, or start an ssh connection to 127.0.0.1 port 33000 in a new console window.

You can hit CTRL-C at any time to terminate the P2P connection.

Was this article helpful?
0 out of 0 found this helpful