Reach a remote application through a tunnel

Forward a local port to a running device service and verify the response.

Exercise brief·Intermediate·3 min read
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.

Rendering diagram…
wendy cloud tunnel 8080:3000. The left port is on your computer; the right port is the service on the device.

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:3000

In 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.

Checkpoint 1 of 2

Local port 8080 is already in use on your computer. The device service still listens on port 3000. Which tunnel command fits?

Commit to an answer. Every choice explains itself.

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.

Checkpoint 2 of 2

The tunnel command is running without errors. Which check proves you are reaching the intended service on the device?

Commit to an answer. Every choice explains itself.

Optional extension: measure request through the tunnel and decide which operations should remain local.

Source: Cloud tunnel requirements and commands.

Can you do each of these?

  • Open, test, and close a Cloud tunnel

0 of 2 checkpoints solved. Try checkpoint 1

Previous: Install Wendy Net VPN on your iPhone
All lessons in this topic
  1. 1. Enroll a device in the right organization
  2. 2. Install Wendy Net VPN on your iPhone
  3. 3. Reach a remote application through a tunnel
  4. 4. Record an event as a Wendy Data episode

Ask Wendy

Answers about Wendy and WendyOS

What would you like to know?

Ask about devices, development, and deployment.

Check linked docs for technical details.