Port Forwarding
Tunnel remote web services and database ports directly to your phone. Secure local (-L) and reverse (-R) SSH port forwarding.
Securely Bridge Network Services to Your Mobile Device
Need to preview a web application running on localhost:3000 on your cloud server? Or access a remote PostgreSQL database (5432) behind a private VPC firewall without exposing it to the open web? Casshper's managed Port Forwarding engine lets you spin up encrypted SSH socket tunnels on demand.
Background Tunnel Persistence
Active socket tunnels run continuously as background services with automatic reconnection and socket collision protection.
Supported Tunnel Modes
- Local Port Forwarding (
-L): Binds a local loopback port on your phone (e.g.127.0.0.1:8080), forwarding all traffic through SSH to a remote server target. - Remote Reverse Forwarding (
-R): Listens on a port on your remote server and routes incoming traffic back to a socket on your mobile device. - Live Traffic Monitoring: Real-time status indicators in the notification drawer verify active socket health.
Configuring and Starting Tunnels
- Open Casshper and open the sidebar menu to view your saved connections.
- Tap the options menu icon next to your target host (or tap the host inside Connection Manager) and select Manage Ports.
- Tap Add Port Forward to open the rule dialog:
- Type: Select
Local (Device -> Remote)orReverse (Remote -> Device). - Source Port (Bind): Enter your local binding port (e.g.
8080). - Dest Host: Enter target host (defaults to
localhostor127.0.0.1). - Dest Port: Enter remote service port (e.g.
3000).
- Type: Select
- Tap Add, then tap Save in the Manage Ports dialog to apply your configuration.
- Tap the options menu icon next to the host again and select Start Forwarding to activate the SSH tunnel.
- Open Chrome or Firefox on your mobile device and navigate to
http://localhost:8080to access your remote web service! - To stop forwarding, open the host's options menu and select Stop Forwarding.
Pro Tip: Mobile Web Dev Preview
Forward your development server port to test responsive designs directly on your actual phone screen in real time! Check out our step-by-step Mobile Web Dev Preview Guide for detailed setup steps.