> For the complete documentation index, see [llms.txt](https://unknown-56-works.gitbook.io/luigiscreen/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://unknown-56-works.gitbook.io/luigiscreen/network-guides/vpn-tunnels.md).

# CGNAT, VPNs and Tunnels

Use this page when you do not have a public IPv4 address.

## Tailscale or ZeroTier

Use:

```
/screen mediamtx vpn
```

The wizard asks for the VPN address or hostname that the OBS computer uses to reach MediaMTX.

Both relevant computers must join the same VPN network.

This option works best when:

* You control both machines
* You can install the VPN client on both machines
* Your Minecraft hosting provider allows the VPN client

Most managed Minecraft hosts do not allow installing Tailscale or ZeroTier in their server container.

## Playit

Playit can expose a TCP service without router port forwarding.

Conceptually:

```
OBS -> Playit public TCP address -> Playit agent -> local MediaMTX:55556
```

Important:

* Create a generic TCP tunnel, not a Minecraft-only tunnel.
* Point the local side to the MediaMTX TCP port.
* Use the Playit hostname and assigned public port in OBS.
* The Playit agent and MediaMTX computer must remain running.

Playit solves reachability, not 24/7 hosting.

## Other tunnel options

Other TCP tunnel services can work if they provide:

* Raw TCP forwarding
* A stable hostname and port
* Enough bandwidth for continuous video
* No protocol restriction that rejects RTMP

Free tunnels can change addresses, limit bandwidth, sleep, or disconnect long-running sessions.

## Best choice

For temporary streaming from home without a public IP, use Playit or a VPN.

For reliable 24/7 operation without a home PC, use an external VPS and the `hosting` profile.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://unknown-56-works.gitbook.io/luigiscreen/network-guides/vpn-tunnels.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
