If you've configured TinyPilot to use H.264 video but see an error saying only MJPEG is available, you can likely fix the issue by specifying a STUN server.
TinyPilot uses peer-to-peer technology to stream H.264 video to the browser on your client computer.
Peer-to-peer technology requires that your TinyPilot device and client computer can communicate with each other directly, but some networks don't support this.
If H.264 video works when your TinyPilot device and client computer are on the same network but fails when they're on different networks, then peer-to-peer communication might not be available, and a STUN server may help.
A STUN server acts as an intermediary and helps to establish the peer-to-peer connection between your TinyPilot device and your web browser.
STUN servers see some information that is normally private, including:
STUN servers can't see the video or any actions you perform in TinyPilot.
To specify a STUN server: