Overview
m87 port forwarding allows you to securely access services running on remote devices or devices on remote networks as if they were running locally. All traffic is encrypted through the m87 secure tunnel.Forward Command
Forward ports from remote devices or remote network devices to your local machine.Syntax
[local_port:]remote_target[/protocol]
Where:
remote_targetis[host:]portprotocolistcp(default) orudp
Port Forwarding Formats
Basic Examples
Network Device Forwarding
Access devices on the remote device’s network, not just services running on the device itself.Use Cases
- Access IP cameras on remote LANs
- Connect to routers and switches through a jump host
- Reach internal network services
- Access IoT devices without public IPs
Examples
Multiple Port Forwarding
Forward multiple ports with a single command.Examples
Port Ranges
Forward ranges of ports efficiently.Syntax
Examples
Port ranges are particularly useful for applications that use multiple consecutive ports, such as media servers or game servers.
Real-World Examples
Web Development
Database Access
IoT and Smart Home
Media Streaming
SSH Tunneling
Serial Command
Connect to serial devices (USB, UART) on remote machines.Syntax
Parameters
Examples
Common Serial Devices
Use Cases
- Arduino development - Flash and debug Arduino boards
- Router/switch configuration - Access console ports
- Embedded systems - Debug embedded Linux devices
- Industrial equipment - Monitor and control serial devices
- IoT devices - Configure ESP32, ESP8266, and similar devices
Serial Examples
Security Features
All forwarding is secure by default:
- All traffic is encrypted through the m87 secure tunnel
- No need to expose ports publicly or configure firewalls
- Authentication handled automatically by m87
- End-to-end encryption for all forwarded connections
Connection Behavior
- Forwarding runs in the foreground
- Press
Ctrl+Cto stop forwarding - Connection automatically reconnects if network drops
- Local ports are released when forwarding stops
Related Commands
- Device Access - Execute commands on remote devices
- Docker Integration - Forward ports from containers