INTRODUCTION
FEATURES
TUTORIALS
ADVANCED
Persistent Tunnels
API
Persistent Tunnels
To make a tunnel load automatically every time your device powers on, add --persist
to your tunnel command line options.
Example:
pitunnel --port=80 --http --name=my_server --persist
It is recommended that you first test your tunnels without --persist
, to make sure they work correctly.
Listing Persistent Tunnels
You can list active persistent tunnels using the --list
option:
pitunnel --list
Outputs:
+----+------------------------------------+ | ID | Command-Line Arguments | +----+------------------------------------+ | 1 | --port=80 --http --name=my_server | +----+------------------------------------+
Removing Persistent Tunnels
You can remove a persistent tunnel by using --remove
and specifying the ID of the tunnel:
pitunnel --remove 1
Next: Command-Line Options