Expose Your Local Ollama LLM to the Internet Safely (No Port Forwarding)
Running a large language model on your own machine with Ollama is free, private, and fast — until you want to use it from anywhere else. Ollama listens on localhost:11434 by default, which means your phone, your laptop at a café, or a friend's computer can't reach it. Opening a port on your router is often impossible behind CGNAT, and exposing Ollama directly is risky because Ollama ships with no authentication: anyone who finds the port can use your model.
This guide shows how to put your local Ollama behind a public HTTPS link with ProxVN in about two minutes, and how to do it without leaving your model open to the whole internet.
Step 1: Get Ollama running locally
If you haven't installed Ollama yet, grab it from ollama.com for your OS. Then pull a model and start it:
ollama pull llama3.1 ollama serve
Check that it answers on your own machine:
curl http://localhost:11434/api/tags
You should see a JSON list containing the model you pulled. If that works, Ollama is ready — and it is only reachable from this computer, which is exactly how we want it for now.
Step 2: Install ProxVN
ProxVN is a single static binary. On Linux, macOS, or Android (Termux):
curl -fsSL https://proxvn.io.vn/install.sh | sh
On Windows, in PowerShell:
irm https://proxvn.io.vn/install.ps1 | iex
No account is needed to try it. Anonymous use works immediately, with a safety warning page shown to browser visitors (API calls and curl go straight through, which is what matters for an LLM API).
Step 3: Expose port 11434
From the same machine that runs Ollama, run one command:
proxvn http 11434
ProxVN prints a public URL like https://random-name.proxvn.io.vn. From your phone or any other machine, test it:
curl https://random-name.proxvn.io.vn/api/tags
You should get the same JSON list of models. Now try a real generation from anywhere:
curl https://random-name.proxvn.io.vn/api/generate -d '{"model": "llama3.1", "prompt": "Explain quantum computing in one sentence."}'
Your model is now usable from any device with internet access, and you never touched your router.
Step 4: Keep the same address with a free account
The anonymous URL changes every time you restart the tunnel. If you want a stable address for your phone app or your own projects, create a free account at proxvn.io.vn and use a fixed subdomain:
proxvn http 11434 --subdomain my-llm
Your model is then always at https://my-llm.proxvn.io.vn. A free account currently allows up to 10 tunnels and 3 fixed subdomains.
Step 5: Don't leave it open — the safety rules
Ollama has no built-in login, so a public Ollama URL is a public model. Follow these rules:
- Only run the tunnel while you need it. Stop it with Ctrl+C when you're done. No tunnel, no exposure.
- Don't share the URL publicly. Treat it like a password and only send it to people and devices you trust.
- Never expose Ollama by opening a router port. A tunnel you can stop at any moment is far safer than a permanently open port.
- Keep Ollama bound to localhost. Don't change its default host to 0.0.0.0 — let ProxVN be the only way in.
Used this way, your model stays private by default and reachable only when you choose.
Why not just use a cloud LLM API?
Cloud APIs are great, but a local model costs nothing per token, keeps your prompts on your own hardware, and works with your own fine-tuned models. A tunnel gives you the convenience of a cloud endpoint with the privacy and price of local hardware.
Try it now
Install ProxVN and expose your Ollama in one command — free, no port forwarding, no router config:
https://proxvn.io.vn/ — download at https://proxvn.io.vn/download
Your LLM, your hardware, reachable from anywhere — only when you say so.