iot

Access IoT Devices from Anywhere

Updated November 27, 2026 8 min read Pinggy Blog
Share

In this article
Access IoT Devices from Anywhere

An IoT device is easy to reach while you’re on the same network and surprisingly hard to reach from anywhere else. You can SSH into a Raspberry Pi or any Linux board from anywhere in the world with a single command on the device: no public IP, no port forwarding, no router configuration.

Summary

  1. Run this command on your IoT device such as a Raspberry Pi:

    text
    ssh -p 443 -R0:localhost:22 tcp@free.pinggy.io
  2. This creates a TCP tunnel and prints a public address like tcp://abcde-203-0-113-7.run.pinggy-free.link:43527.

  3. Use the host and port from that address to SSH into your device:

    text
    ssh -p <port> <username>@<host>

    Example: ssh -p 43527 alice@abcde-203-0-113-7.run.pinggy-free.link

  4. You now have a shell on the device from any network.

  5. Sign in to dashboard.pinggy.io to see your active tunnels, and use a Pro token for an address that doesn’t change.

  6. No SSH client at hand? Run curl -fsSL https://pinggy.io/install.sh | sh on the device once, and Pinggy Devices gives you its terminal and files in any browser.

Developers and DevOps engineers need remote access to IoT devices to monitor them, push updates, read logs and fix whatever stopped reporting overnight. SSH is the backbone of that workflow. The problem is that most IoT devices sit behind NAT with no public IP, and a growing share of home, fibre and cellular connections use CGNAT, where port forwarding isn’t even an option.

Pinggy gets around that from the device side. The device makes one outbound SSH connection to Pinggy, and Pinggy gives it a public host and port that leads back to its SSH server. Nothing on the router changes, and the device doesn’t need any software beyond teh SSH client it already has.

There are a few approaches to remote IoT access:

  • SSH remote access - a full terminal on the device. The most reliable option for headless boards and scripted automation, and light enough for a cellular link.
  • RDP / VNC for remote desktop - useful when you need the GUI, at the cost of more bandwidth.
  • Browser terminal - a shell and a file manager for the device in a web dashboard, with nothing to install on the computer you connect from.
  • Vendor cloud portals - convenient, but tied to one vendor’s service and usually limited to what the vendor exposes.

This guide focuses on SSH, which covers most IoT use cases, and then shows the browser route.

Using Pinggy for SSH from anywhere

Pinggy works with Raspberry Pi, Banana Pi, Orange Pi, NanoPi, Odroid, Rock Pi, NVIDIA Jetson and any other Linux-based device. As long as the device has outbound internet access and runs an SSH server, this works.

On current Raspberry Pi OS, the SSH server is off by default. Turn it on in Raspberry Pi Imager’s customisation settings before you flash the card, or on the Pi with sudo raspi-config nonint do_ssh 0.

Sequence diagram: a Raspberry Pi behind CGNAT dials out to Pinggy on port 443, Pinggy prints a public host and port, and the laptop's ssh -p 43527 is forwarded down the open tunnel to port 22 while direct inbound SSH is dropped at the router

Step 1: Create a tunnel to your IoT device

On your IoT device, open a terminal and run:

text
ssh -p 443 -R0:localhost:22 tcp@free.pinggy.io

This connects out to Pinggy’s server on port 443, which firewalls almost never block, and sets up a tunnel that forwards traffic back to the device’s port 22. The free tier needs no account.

Customize your command:


Invalid CIDR Format
Invalid CIDR Format
Alphanumeric characters only

Step 2: Obtain the public URL

After running the command, you’ll recieve a public address in this format:

tcp://abcde-203-0-113-7.run.pinggy-free.link:43527

Note the hostname and port. Free tunnels last 60 minutes, and the address changes every time you reconnect. The screenshot below shows an older a.pinggy.link hostname; the format is otherwise the same.

Public URL

Step 3: SSH into your IoT device

From any machine with internet access, run:

text
ssh -p 43527 username@abcde-203-0-113-7.run.pinggy-free.link

Replace username with your account on the device, and use the hostname and port from your own Pinggy output. The connection goes to Pinggy’s server, which passes it through the tunnel to your device.

Tip: current Raspberry Pi OS images have no default pi user. Log in with the username you set in Raspberry Pi Imager.

Anyone who finds the address can try to log in, so use SSH keys (ssh-copy-id -p 43527 username@host) and turn off password logins once keys work. To let only your own IP through, add w: to the tunnel command:

text
ssh -p 443 -R0:localhost:22 tcp@free.pinggy.io w:203.0.113.5

Persistent tunnel address with the Pinggy dashboard

A random address that changes every hour is fine for a quick fix, but not for a device you reach every day. With a Pinggy account you can see a device’s current tunnel in the dashboard, and a Pro token removes the 60-minute limit and gives you a persistent address.

Step 1: Sign in to Pinggy

Go to dashboard.pinggy.io and sign in, or create an account if you don’t have one.

Step 2: Get your access token

Your access token is on the dashboard home page. Copy it. Pinggy Pro costs $3/month, or $2.50/month billed yearly.

Step 3: Create the tunnel with your token

text
ssh -p 443 -R0:localhost:22 <access_token>+tcp@pro.pinggy.io

Replace <access_token> with the token from the dashboard. The running tunnel shows up in the dashboard, so you can find the device’s address without being anywhere near it, which helps when you’ve forgotten what a device in a closet is reachable on.

For a device that should always be reachable, the run tunnel on startup guide sets the tunnel up as a service that comes back after every reboot and network drop.

Remote terminal and file manager in the browser

An SSH tunnel still needs an SSH client and the current address on the other end. If you’d rather open the device from any browser, including a phone or a borrowed laptop, Pinggy Devices puts a remote terminal and a file manager for it in your Pinggy dashboard. The device runs the Pinggy CLI as an agent that makes one outbound connection and accepts none, so it works behind NAT and CGNAT with no SSH server and no open port.

Run this once on the device:

bash
curl -fsSL https://pinggy.io/install.sh | sh

It installs the Pinggy CLI without sudo, signs the device in with a 6-digit code sent to your email, and starts the agent in the background. The binaries are built for x64 and arm64 with glibc, so a Raspberry Pi needs the 64-bit Raspberry Pi OS; 32-bit images and boards like the original Pi Zero won’t run it. For a headless board you set up from a script, the Add device button in the dashboard gives you an install command with a device token that asks no questions.

Diagram titled Raspberry Pi terminal and files in a browser: a Raspberry Pi behind CGNAT runs the Pinggy agent, which dials out to the Pinggy dashboard, where the device's Terminal tab runs vcgencmd and systemctl commands and its Files tab lists the home folder with Rename, Copy to, Move to and Delete actions

Then open the device at dashboard.pinggy.io:

  • Terminal opens a shell as the user who ran the install. It keeps running when you close the browser tab, and ends after 30 minutes idle or 8 hours.
  • Files lets you browse folders, make new ones, and rename, copy, move or delete files. It doesn’t upload or download, and delete has no trash. The person on the device can turn it off with pinggy device connect --files off.
  • Overview shows live CPU, load and memory, and Tunnels starts or stops tunnels on the device.

The agent doesn’t come back on its own after a reboot, so run pinggy device connect again, or call it from a startup script on a board nobody logs into. The free plan covers 1 device and 1 open shell, and Pro covers 25 devices per seat. Anyone signed in to your Pinggy account can open a shell on your devices, so turn on two-factor authentication. The Devices docs cover the rest.

Remote desktop access

If you need a GUI rather than a terminal, the same approach works. Start a VNC or RDP server on your device, then tunnel that port instead:

text
ssh -p 443 -R0:localhost:5900 tcp@free.pinggy.io

Port 5900 is the default VNC port, and it’s where WayVNC listens on a Raspberry Pi running the desktop (enable it with sudo raspi-config nonint do_vnc 0). Enter the Pinggy host and port in your VNC viewer. For RDP, tunnel port 3389 instead; our Raspberry Pi remote desktop guide covers the xrdp setup and the Wayland switch it needs, and the VNC guide covers VNC on other boards.

VNC doesn’t encrypt the session by itself, so add w: with your IP here too, and stop the tunnel when you’re done.

Conclusion

One outbound ssh -p 443 command gives an IoT device behind NAT or CGNAT a public address for SSH, with no router changes and no static IP; protect it with SSH keys and w:. If you’d rather skip the SSH client, Pinggy Devices puts the same shell and a file manager in your browser after one install command on the device.