# 5 ways to expose localhost to the Internet (and which to pick)

Port forwarding, a VPS reverse proxy, Cloudflare Tunnel, ngrok and ProxVN: pros and cons of each way to put a local app online.

Source: https://proxvn.io.vn/blog/public-localhost-ra-internet

Finished a web app and want someone else to try it? There are five common approaches, each suited to a different situation.

## 1. Router port forwarding

Free and direct — but many ISPs use CGNAT so it simply doesn't work, your IP changes, there's no HTTPS, and you expose your home IP.

## 2. VPS + reverse proxy

Stable and fully under your control, but you deploy on every change, pay for the server, and it's slow for quick tests.

## 3. Cloudflare Tunnel

Free and powerful, but needs your own domain on Cloudflare, more setup, and no UDP for end users.

## 4. ngrok

Easy, but the free plan has a warning page and restricts TCP/UDP. See [ProxVN vs ngrok](https://proxvn.io.vn/blog/proxvn-vs-ngrok).

## 5. ProxVN

One command, HTTPS immediately, TCP/UDP/folder sharing included, no sign-up:

$` proxvn http 3000 `

## Which one?

- **Demos, webhooks, collaboration:** ProxVN or ngrok.
- **Long-running with your own domain:** Cloudflare Tunnel or [self-hosted ProxVN](https://proxvn.io.vn/docs/self-host).
- **Production for real users:** deploy to a VPS or cloud.
