Expose vs VS Code port forwarding

The VS Code port forwarding alternative with stable URLs and a request dashboard

VS Code forwards a port from its Ports view through Microsoft dev tunnels. The port is private by default, so every visitor has to sign in with the same GitHub or Microsoft account, and a webhook provider can't do that. Expose gives localhost a public HTTPS URL from any editor or terminal. Visitors never see a warning page, the URL can stay the same on Pro, and a dashboard shows and replays every request. Keep VS Code's forwarding for quick private checks and for Codespaces and remote development. Use Expose for webhooks, client demos and coding agents.

curl -fsSL https://expose.dev/install.sh | sh irm https://expose.dev/install.ps1 | iex
Create free account

Expose and VS Code port forwarding side by side

Feature Expose VS Code port forwarding
Where it runs Any terminal or editor. A single binary for macOS, Linux and Windows, also built into Laravel Herd. The Ports view in VS Code, and Dev Tunnels in Visual Studio 2022 version 17.6 or later. The devtunnel CLI hosts tunnels without an editor.
Account A free Expose account. The first share opens the browser to create one. A GitHub or Microsoft account. The devtunnel CLI also takes Microsoft Entra ID and can't host a tunnel anonymously.
Who can open the URL Anyone with the URL. --basicAuth asks visitors for a password, --magic-auth for an email address. Private by default: visitors sign in with the same GitHub or Microsoft account that forwarded the port. Port Visibility, then Public, removes the sign-in for everyone.
Webhooks They work on every plan, because the URL is public. Stripe, GitHub and Paddle Billing webhooks are highlighted in the dashboard. Need a Public port, because the provider can't sign in to GitHub or Microsoft.
Warning page for visitors None, on every plan. An anti-phishing page on a browser's first visit. Requests other than GET skip it, and so do requests with the X-Tunnel-Skip-AntiPhishing-Page header.
The same URL every time Reserved subdomains and your own domain in Pro, $79 a year per user. VS Code's docs don't say. In Visual Studio and the devtunnel CLI, a persistent tunnel keeps its URL and expires after 30 days without activity. A temporary tunnel gets a new URL.
Inspecting and replaying requests A dashboard on localhost:4040 with every request, replay, and replay with changes. devtunnel host prints an inspect URL that shows the traffic in browser DevTools. Replay is not stated.
Limits The free plan has a time limit per connection. Pro has none, and no plan bills for requests or data. 5 GB of bandwidth and 10 tunnels per user, reset monthly. 10 ports per tunnel and 1,500 HTTP requests a minute per port.
Price Free plan, or Pro for $79 a year per user. No price on Microsoft's pages. Dev tunnels are in public preview, without a service-level agreement, and Microsoft says they are not for production.
Coding agents An MCP server that lets your agent read the requests that reached the tunnel. It works with GitHub Copilot in VS Code, Claude Code and Codex. Not stated.

From the Expose pricing, VS Code's port forwarding docs and Microsoft's dev tunnels docs on December 4, 2026. "Not stated" means we didn't find it there.

Your VS Code port forwarding commands in Expose

Task VS Code port forwarding Expose
Sign in once devtunnel user login, or devtunnel user login -g for GitHub expose login
Share a local port Forward a Port in the Ports view, or devtunnel host -p 3000 expose share http://localhost:3000
Open it without a sign-in Port Visibility, then Public, or devtunnel host -p 3000 --allow-anonymous expose share http://localhost:3000, public by default
Keep the same URL devtunnel create, devtunnel port create -p 3000, then devtunnel host expose share http://localhost:3000 --subdomain=my-app
Let in only your client Keep the port Private, or grant access with devtunnel access create expose share http://localhost:3000 [email protected]
Share a Herd or Valet site expose share my-app.test

More options in the sharing docs.

How Expose and VS Code port forwarding differ

When the sender can't sign in

A forwarded port in VS Code is private by default. VS Code's docs say that when you open the URL, "you'll be required to sign in with the same GitHub account you used to start the port forwarding process". Stripe, GitHub and Paddle send webhooks from their servers and can't sign in, so you have to switch the port to Public first. A Public port is open to anyone with the link. An Expose URL is public from the start. To limit who can open it, add --basicAuth for a password or --magic-auth for an email address.

What a browser visitor sees

Dev tunnels show an anti-phishing page the first time a browser opens a tunnel URL. Microsoft's security docs list when it is skipped: requests other than GET, an Accept header without text/html, the X-Tunnel-Skip-AntiPhishing-Page header, or a visitor who already clicked Continue. Webhook POSTs get through. A client you send a link to sees the warning first. Expose shows your site directly on every plan, including the free one.

Whether the URL stays the same

VS Code's port forwarding docs don't say whether a forwarded port keeps its URL. In Visual Studio, a temporary tunnel gets a new URL each time Visual Studio starts, and a persistent tunnel keeps it. The devtunnel CLI makes a persistent tunnel with devtunnel create, and it expires after 30 days without activity. With Expose Pro, you reserve a subdomain and share with --subdomain, or use your own domain with one CNAME record, so the URL you paste into Stripe or an OAuth app stays the same.

Seeing what arrived

devtunnel host prints a second URL ending in -inspect, which shows the tunnel's traffic in browser DevTools. Microsoft's docs don't mention replay. Expose runs a dashboard on http://127.0.0.1:4040 with every request and your app's response. You can replay a request, or replay it with a changed method, path, headers or body, without triggering the webhook again. Built-in plugins highlight Stripe, GitHub and Paddle Billing webhooks. The client keeps each site's requests for up to 72 hours.

Limits and price

Microsoft's Azure limits page lists 5 GB of bandwidth and 10 tunnels per user for dev tunnels, reset monthly. Each tunnel takes up to 10 ports, and each port up to 1,000 active connections and 1,500 HTTP requests a minute. Microsoft's pages state no price, and dev tunnels are in public preview without a service-level agreement. Expose has no usage billing. The free Hobby plan has a time limit per connection. Pro is $79 a year per user with no time limit.

When VS Code port forwarding fits better

If you only want to open your own app on your phone or in another browser where you are signed in, a Private port is two clicks and nobody else can open it. In GitHub Codespaces and VS Code remote development, forwarding is already wired in. Codespaces forwards a port as soon as your app prints a localhost URL, at an address like CODESPACENAME-PORT.app.github.dev, and on GitHub Team or Enterprise Cloud it can share the port with your organization. Expose would be one more tool to install there. And if your team signs in with Microsoft Entra ID, dev tunnels can limit a tunnel to your tenant or a GitHub organization, with no password to send around.

Trying Expose takes a minute

  1. 1. Install Expose with the command above.
  2. 2. Run expose share http://localhost:3000 in VS Code's terminal or any other. The first time, it opens the browser to create a free account.
  3. 3. Replace the devtunnels.ms URL in Stripe, GitHub or your OAuth app with the Expose URL, then open http://127.0.0.1:4040 to see and replay every request.

Other VS Code port forwarding alternatives

ngrok

The best-known tunnel, with an inspector on localhost:4040 that replays requests. The free plan has one dev domain that doesn't change when you restart, 1 GB of data out and 20,000 HTTP requests a month. Browser visitors on the free plan see an interstitial page, which webhooks and curl don't. Any paid plan removes it.

Expose vs ngrok

Cloudflare Tunnel

Quick Tunnels give a local port a temporary trycloudflare.com URL with no account or domain. The hostname changes each time you start one, each tunnel takes up to 200 in-flight requests, and Server-Sent Events aren't supported. Cloudflare says Quick Tunnels are for testing and development.

Expose vs Cloudflare Tunnel

Tailscale Funnel

If your team already runs Tailscale, Funnel publishes a port on the internet at a name in your tailnet's ts.net domain, on port 443, 8443 or 10000. It is on all plans, including the free one, in beta, and with bandwidth limits you can't configure.

Expose vs Tailscale Funnel

From ngrok's docs, Cloudflare's Quick Tunnels docs and Tailscale's Funnel docs on December 4, 2026.

Questions

Does VS Code port forwarding work for webhooks?

Only on a Public port. A private port asks every visitor to sign in with the GitHub or Microsoft account that forwarded it, and a webhook provider can't. On a Public port, webhook POSTs reach your app and skip the anti-phishing page, which dev tunnels only show for GET requests from a browser. With Expose the URL is public from the start, and the dashboard on http://127.0.0.1:4040 shows and replays each webhook.

What are Microsoft dev tunnels?

Dev tunnels are the relay service behind VS Code's port forwarding and the Dev Tunnels menu in Visual Studio 2022. Microsoft describes them as a way to "securely share local web services across the internet" for ad hoc testing and development, not for production. They are in public preview. The devtunnel CLI hosts tunnels without an editor and installs with winget, Homebrew or a shell script.

Does the VS Code forwarded URL change?

VS Code's port forwarding docs don't say. In Visual Studio, a temporary tunnel gets a new URL each time Visual Studio starts, and a persistent tunnel keeps it. With the devtunnel CLI, devtunnel create makes a persistent tunnel that expires after 30 days without activity. With Expose Pro, --subdomain=my-app keeps the URL you reserved.

What are the dev tunnels limits?

On December 4, 2026, Microsoft's Azure limits page listed 5 GB of bandwidth and 10 tunnels per user, reset monthly. Each tunnel takes up to 10 ports, and each port up to 1,000 active connections and 1,500 HTTP requests a minute. Expose has no usage billing. The free plan has a time limit per connection, and Pro has none.

Can I show a client my work without a GitHub sign-in?

With VS Code, make the port Public. Anyone with the link can then open it, after an anti-phishing page on the first visit. With Expose there is no warning page. --basicAuth="client:secret" asks for a username and password, and [email protected] lets in visitors who enter an email address at that domain.

Can my coding agent read the requests?

Yes, with Expose. Connect the Expose MCP server at https://expose.dev/mcp, and GitHub Copilot in VS Code, Claude Code or Codex can list your tunnels and read the last 50 requests of each in full for 30 minutes, with secrets removed. The agent can't open tunnels or replay requests. You start a tunnel with expose share.