Port forwarding

Remote forwarding

Let a server reach a service running on your Mac or in your network.

Example

You’re building a web app on your Mac at localhost:3000 and want a service on web-server to send webhooks to it.

  1. In Port Forwarding, click New Forwarding and choose Remote.
  2. Connect via host: web-server.
  3. Requested remote listener: port 8080. This is the port that opens on the server.
  4. Destination: 127.0.0.1, port 3000.
  5. Click Save & Connect.

Everything that reaches port 8080 on the server now arrives at your app on port 3000.

Good to know

If you’re used to the command line

This does the same as:

ssh -R 8080:127.0.0.1:3000 user@web-server
  • -R means a remote tunnel
  • 8080 is the port in Requested remote listener
  • 127.0.0.1:3000 is the Destination
  • user@web-server is the host in Connect via Host

You don’t need to run this command: Termbit sets everything up for you.