Create the tunnel
- On a computer or tablet, open Tunnels in the sidebar and choose New. On a phone, choose + in Sessions, then Start a tunnel…, then +.
- Choose Local, Remote or Dynamic (SOCKS), then Next.
- Choose the server, then Next.
- Fill in the port on this device, the address as the server sees it, and its port. To reach a database on the server itself, the address is
localhost. - Keep Open it now ticked and choose Create.
Use it
With a local tunnel from port 5432 to localhost port 5432, connect to the database on this device:
psql -h 127.0.0.1 -p 5432 -U appStart and stop
Choose Start or Stop on the tunnel's row or in its menu. The row shows Open, Opening, Failed or Closed. During a session, Tunnels in the side panel does the same.
If the port is already in use on this device, choose another one in the tunnel. More in Tunnels.