Testing a web app on a physical phone over cellular data, with Wi-Fi switched off, shows how your app behaves on a real device and a real network path. When your phone opens a public HTTPS address ending in .instawormhole.site, the request travels over HTTPS to InstaWormhole’s edge and then to the dev server on your workstation. It does not stay inside your local network.
With InstaWormhole, you expose a local port on a public HTTPS address without opening a port on your router or changing your firewall for incoming traffic. You can then confirm each request from your phone in the request inspector.
Why Cellular Testing Beats Local LAN Testing
A desktop browser resized to a narrow width simulates screen dimensions, not a real device. Opening something like http://192.168.x.x:3000 on a phone over Wi-Fi keeps both devices behind the same router and usually serves plain HTTP.
Switching Wi-Fi off and loading an .instawormhole.site address changes the setup in practical ways:
- Real device behavior: Notches, home-indicator insets, the virtual keyboard, touch scrolling and tap target spacing run on the actual phone and its mobile browser, not in a desktop approximation.
- HTTPS from outside your network: The request arrives over HTTPS from a network that is not your computer’s, so you can watch how redirects, cookies and sign-in flows behave compared with
http://localhost. - No local network setup: You don’t look up your computer’s local IP address or edit firewall rules. The connector opens an outbound connection to InstaWormhole, so you do not open a port on your router.
How a Request Reaches Your Local App
According to the InstaWormhole documentation, a visitor opens your tunnel’s address and the request travels over HTTPS to InstaWormhole’s edge. The edge checks the tunnel’s rules: whether it is blocked, its request limits, its IP list and its password or token. If the request passes, the relay hands it to your connector over the connection the connector opened. The connector passes it to your app and sends the answer back along the same path.
Some details worth knowing:
- The connector forwards only to loopback addresses such as
127.0.0.1,localhostand::1. - Your local app must answer plain HTTP. A local server that only accepts HTTPS is not supported.
- WebSocket and streaming responses are forwarded, which is what hot reload relies on.
- Tunnel traffic lives under
instawormhole.site, while your account and dashboard live underinstawormhole.com. They are separate domains on purpose, so an app behind a tunnel cannot read your InstaWormhole session.
A tunnel’s public address answers anyone on the internet unless you protect it. Choose who may visit when you create the tunnel, and stop the connector when you finish testing.
Step-by-Step: Open a Tunnel and Test on Cellular Data
The quick start guide describes about 10 minutes of setup on Windows, macOS or Linux with Node.js 20 or later.
1. Start your app and open it on your computer
Open your app at its local address, for example http://localhost:3000. If it does not load there, fix that first, because the tunnel can only forward what your app already serves.
2. Create a free account
Sign up with GitHub, Google, an email address or a passkey. The Free plan needs no payment details.
3. Create a tunnel
In the dashboard, open Tunnels, choose Create tunnel, give it a name and pick an expiry: Never, In 1 hour, In 1 day, In 7 days or In 30 days. Under Who can open it, choose Anyone with the address, or Only people with a password if your plan includes password protection (Starter and up).
The tunnel shows its public address, which ends in .instawormhole.site.
4. Sign this computer in once
npx @instawormhole/connector login The connector prints a short code and a web address. Open the address, check that the request is from your computer, and approve it. To confirm, run:
npx @instawormhole/connector status 5. Run the connector against your port
On your tunnel in the dashboard, open Connect an app and choose Copy command. Change 3000 to your app’s port if it is different. The command has this shape:
npx @instawormhole/connector run --relay wss://relay.instawormhole.site --origin 127.0.0.1:3000 --stored-device --tunnel <tunnel id> The dashboard fills in your tunnel id. Keep the window open while you want the tunnel live. The tunnel’s badge changes to Live within a few seconds.
6. Load the address on your phone over cellular data
Turn off Wi-Fi so the phone uses cellular data, then open the tunnel’s address in your mobile browser. If you chose a password, the browser asks for one. Enter anything as the user name and the tunnel’s password.
Then exercise real flows on the device:
- Rotate the screen and scroll through sticky headers, modals and forms.
- Tap buttons, menus and inputs to check touch responsiveness and keyboard behavior.
- Trigger sign-in, session or API flows and watch how the app behaves over HTTPS.
- Edit your app locally and reload the page to confirm the change reaches the phone.
7. Check the request in the inspector
On the tunnel in the dashboard, choose Open request inspector. A row shows the method, the path, the status your app returned and how long it took. Only durable tunnels, created in the dashboard, are recorded in the inspector. A quick address, started by running the connector with only a port, is a temporary random address and is not recorded.
Framework Setup for Mobile and Hot Reload
Development servers often refuse an address they don’t recognize, or break hot reload. The framework guide covers Vite 6 and later, Next.js 15 and later, Expo, Shopify CLI and Laravel. In the snippets below, replace example with your own tunnel name.
Vite answers unknown hosts with “Blocked request. This host is not allowed.” Allow the address and route hot reload through the tunnel:
export default { server: { allowedHosts: ['example.instawormhole.site'], hmr: { protocol: 'wss', clientPort: 443 }, }, } Next.js blocks development assets requested from other origins, which breaks hot reload and hydration:
module.exports = { allowedDevOrigins: ['example.instawormhole.site'], } Expo needs the Metro port tunneled and the packager proxy URL set so Expo advertises your address. The docs say this replaces expo start --tunnel:
npx @instawormhole/connector 8081 EXPO_PACKAGER_PROXY_URL=https://example.instawormhole.site npx expo start Laravel runs php artisan serve on port 8000, tunneled with npx @instawormhole/connector 8000. Set APP_URL=https://example.instawormhole.site in your .env file so generated links use your address. The guide also covers trusting the proxy in Laravel 11 and later.
If you remove the tunnel later, remove these settings too.
Controlling Who Can Open Your Tunnel
A test build on a public address is reachable by anyone who has it. InstaWormhole’s edge applies access checks before a request reaches your connector, and a tunnel has one access mode at a time: anyone, a password, a token or an email code. An IP list works on top of any of them.
| Control | What it does | Plan |
|---|---|---|
| Anyone with the address | No check | All plans |
| Password | The browser asks for a password before the request reaches your app | Starter and higher |
| Access token | The request must carry a secret token in a header | Starter and higher |
| Email code | Only listed people can open it, using an emailed six-digit code | Starter and higher |
| IP allow or deny list | Limits which networks may reach the tunnel | Starter and higher |
| Expiry, pause and stop | Ends access after a time, or switches the tunnel off | All plans |
For a phone test with a client or colleague, a password or email codes work well in a browser. For a short session, an expiry makes the address stop on its own.
Diagnosing Problems
If the public address shows an error or nothing, open the tunnel in the dashboard and run Tunnel Doctor, which checks each layer and names the one that failed. Every finding has a stable diagnostic code, and the docs list them all in the diagnostic code reference.
A few examples:
-
CONNECTOR_UNAVAILABLE: the connector is recorded as connected but did not take the request. Restart it withCtrl+C, then run the command under Connect an app again. -
CONNECTOR_OFFLINE: start the connector on the computer running your app. -
ORIGIN_UNREACHABLE: make sure your app is running and that the--originaddress matches the port it listens on, for example127.0.0.1:3000. -
REQUEST_VITE_HOST_BLOCKEDandREQUEST_NEXT_DEV_ORIGIN_BLOCKED: add the tunnel’s address to the framework setting shown above, then restart the dev server.
Pairing Tunnel Doctor with the request inspector helps you separate a problem in your app from a problem in the tunnel.
Plans and Limits
The connector is published for Windows (x64), macOS (Apple silicon and Intel) and Linux (x64 and arm64). You can run it with npx @instawormhole/connector, which needs Node.js 20 or later, or use the signed download, which does not need Node.js. The macOS download is not signed by Apple, so macOS asks you to confirm the first time.
According to the plans and limits page, prices are in US dollars before any sales tax or VAT:
| Plan | Price | Tunnels online at once | Transfer a month | Requests a minute per tunnel |
|---|---|---|---|---|
| Free | $0 | 3 | 5 GB | 120 |
| Starter | $4.99 a month, or $44.91 a year | 10 | 50 GB | 600 |
| Pro | $9.99 a month, or $89.91 a year | 25 | 200 GB | 1,200 |
| Team | $19.99 a month, or $179.91 a year | 50 | 500 GB | 2,400 |
| Business | $39.99 a month, or $359.91 a year | 100 | 1 TB | 4,800 |
On Free, a connection lasts up to 24 hours and you get 1 reserved address. Paid plans have no session time limit. When a tunnel exceeds its requests-a-minute limit, the relay answers 429 until the minute passes, and when monthly transfer is used up, tunnels answer 429 until the first of next month (UTC).
Wrapping Up
Once your local server is running, a cellular test takes only a few minutes to set up. Open the tunnel address on a phone with Wi-Fi off, work through your real touch and sign-in flows, and confirm the requests in the inspector. When you finish, stop the connector with Ctrl+C, and pause or delete the tunnel if you no longer need it.
Originally published at https://instawormhole.com/blog/test-local-apps-on-a-real-phone-over-cellular-data
