Reach a remote application through a tunnel
Forward a local port to a running device service and verify the response.
Requirements and learning goals
Before you start
- An online enrolled device and permission to access it
- A verified HTTP service on device port 3000
You will be able to
- Open, test, and close a Cloud tunnel
The project brief below assumes the listed prerequisites and gives you a task and checks to perform. Need a guided first project?
A forwards a port on your computer to a service on a remote device. It lets you open a robot's dashboard in your own browser without exposing that dashboard through the venue's router. The service must already exist on the device. It does not start the server, fix its bind address, or remove its authentication requirements.
Current Cloud v2 supports TCP and UDP forwarding to device loopback ports. Arbitrary application ports require compatible Cloud, CLI, and Agent versions; older v2 versions supported only the Agent and SSH ports.
Combine the tunnel with app logs to distinguish a network problem from a service that never became ready.
Open and test
First verify that the application works on the target. Then keep this command running:
wendy cloud tunnel 8080:3000In another terminal:
curl --fail http://127.0.0.1:8080/The left port belongs to your computer. The right port belongs to the device service. Compare the response with a known expected value, not merely an HTTP connection.
Press Ctrl+C in the tunnel terminal, then repeat the request. It should no longer reach that remote service through the closed tunnel.
Common snags
If local port 8080 is occupied, choose another local port. If the tunnel opens but the request fails, inspect the remote application's listener and logs. A tunnel to port 22 works only if the device actually runs an SSH server; release Jetson and Raspberry Pi images do not include one according to the Cloud guide.
Keep application authentication in place. A tunnel is a transport, not a substitute for checking who may issue a robot command.
Optional extension: measure request through the tunnel and decide which operations should remain local.
Before you move on
Can you do each of these?
- Open, test, and close a Cloud tunnel
0 of 2 checkpoints solved. Try checkpoint 1