go2rtc — RTSP Ports and Camera Setup

go2rtc shares a camera feed with other apps. To watch from another device, open a named RTSP restream from standalone go2rtc or Frigate.

Default go2rtc ports

Web UI and HTTP API
1984 TCP
RTSP restream for a viewer
8554 TCP
Direct WebRTC connection
8555 TCP/UDP
rtsp://go2rtc-host:8554/stream-name

Use the address of your go2rtc or Frigate host and the stream name you configured.

Build a go2rtc RTSP address

Keep the API and camera streams on a trusted local network. Never forward ports 1984 or 8554 to the public internet. Frigate and Home Assistant setup differences are covered below.

Languages · English

What is go2rtc?

go2rtc is a free, open-source media server created by AlexxIT. It acts as a universal streaming proxy and server — it can take virtually any IP camera stream as input (RTSP, RTMP, HTTP, ONVIF, FFmpeg, Homekit) and re-broadcast it in multiple output formats including RTSP, WebRTC, HLS, MSE, and HomeKit.

go2rtc can share one camera connection between several consumers, including Frigate, Home Assistant dashboards, and RTSP viewers. This helps cameras with limited simultaneous connections. The number of viewers still depends on server resources, network bandwidth, and the streams requested.

Why Use go2rtc with IP Cameras?

📡 Single Connection Fan-Out

Share a camera source between Frigate, Home Assistant, and SmartRTSP. Reusing one named stream can reduce direct camera connections.

🌐 Browser-Ready Streams

go2rtc offers WebRTC and other browser playback outputs. Playback depends on the camera's codecs and the browser; some combinations require transcoding.

🏠 Home Assistant Integration

Home Assistant can manage go2rtc for camera playback. A separate go2rtc app or server has its own configuration and ports.

🍎 HomeKit Bridge

go2rtc includes a HomeKit bridge for compatible camera streams. Check its codec and configuration requirements before setting up Apple Home.

go2rtc RTSP URL Format

Standalone go2rtc listens for RTSP client connections on port 8554 by default. Each stream defined in your go2rtc.yaml gets its own RTSP endpoint:

rtsp://[go2rtc-host-ip]:8554/[stream-name]

Examples:

rtsp://192.168.1.50:8554/frontdoor rtsp://192.168.1.50:8554/backyard rtsp://192.168.1.50:8554/reolink_main

SmartRTSP tip: Enter any of these URLs directly in SmartRTSP on your iPhone — tap + → Manual URL → paste the go2rtc RTSP URL → Connect.

go2rtc RTSP restream not working?

Check which device returned 401

Camera source login
Open the camera URL from the go2rtc host. If the source keeps returning 401, check the camera’s local streaming account. Encode reserved characters once in credentials embedded in the source URL.
Restream viewer login
Open the named restream from your viewing device. Use the go2rtc or Frigate host address and the configured RTSP port. If the restream keeps returning 401, check its viewer username and password.

Frigate’s source URL and password checks

If the viewer gets 404 from go2rtc, match the URL path to the exact stream name in go2rtc.yaml or Frigate. If the go2rtc log shows a 404 from the camera, check the camera’s RTSP path. For a timeout, check whether the viewer can reach the host and port.

go2rtc RTSP has video but no audio?

Run this check on your local network. Replace the host, port and stream name with your restream details, then run it again with the camera’s own RTSP URL for the same feed. Look for an audio track and its codec.

ffprobe -v error -rtsp_transport tcp -show_entries stream=codec_type,codec_name -of compact "rtsp://go2rtc-host:8554/front_door"

If the camera’s own stream has no audio track, check that it has a microphone and that audio is enabled for that exact channel and stream. Selecting AAC in a URL cannot supply missing audio.

If the original stream has audio but your viewer cannot play its format, add an AAC audio source under the same stream name. Keep your existing camera URL. In Frigate, merge the streams entry into the existing go2rtc block. FFmpeg must be available to go2rtc.

streams:
  front_door:
    - "rtsp://CAMERA_HOST:554/STREAM_PATH"
    - "ffmpeg:front_door#audio=aac"

Use this URL to select the existing H.264 or H.265 video and the AAC audio track. The URL selects tracks. The FFmpeg source in the configuration produces AAC. Reopen the stream, repeat the check and listen for sound.

rtsp://go2rtc-host:8554/front_door?video=h264,h265&audio=aac

Built-in Home Assistant ports

Home Assistant’s built-in go2rtc uses RTSP port 18554 internally. Other devices on your network cannot connect to that port. WebRTC uses 18555, and the HTTP API on 11984 is available only when the debug UI is enabled.

To watch in SmartRTSP from another device, use the camera’s own RTSP URL if available, or set up and use an RTSP restream in Frigate or standalone go2rtc.

official Home Assistant integration documentation · Home Assistant Core default port configuration

Installing go2rtc

Option 1 · go2rtc app on Home Assistant OS

On Home Assistant OS, install the separate go2rtc app from the developer’s repository.

  1. In Home Assistant, go to Settings → Apps
  2. Add the repository https://github.com/AlexxIT/hassio-addons, then install go2rtc
  3. Start the app and open the web interface
  4. Edit go2rtc.yaml to add your camera streams

Option 2: Docker

Use Docker Engine on Linux, or Docker Desktop 4.34 or later with Linux containers and host networking enabled.

Save go2rtc.yaml in an existing folder. Replace /path/to/config with the path to that folder before running the command.

docker run -d --name go2rtc --network host -v "/path/to/config:/config" alexxit/go2rtc

Which RTSP port should I use with Docker?

With a Docker bridge network, a mapping of 28554:8554 sends connections on host port 28554 to container port 8554. In your player, use the host’s local address and port 28554.

rtsp://go2rtc-host:28554/front_door

Run this on the Docker host to check its mapping. Replace go2rtc with your container name and 8554 with its configured RTSP port.

docker port go2rtc 8554/tcp

A mapping to 127.0.0.1 is reachable only on the Docker host. Keep access limited to trusted devices.

With Docker host networking, the player uses the port in rtsp.listen. If that port is in use, choose a free one in the go2rtc configuration and update the viewer URL.

Option 3: Direct Binary (Linux/macOS/Windows)

# Download the binary for your OS from: # https://github.com/AlexxIT/go2rtc/releases # Linux x64: wget https://github.com/AlexxIT/go2rtc/releases/latest/download/go2rtc_linux_amd64 chmod +x go2rtc_linux_amd64 ./go2rtc_linux_amd64

Test go2rtc without a camera

This test uses standalone go2rtc and FFmpeg on your PATH. Download the sample into a new folder, save the configuration below as sample-go2rtc.yaml in that folder, and start go2rtc from there.

Download the 60-second video and audio sample

streams: sample: ffmpeg:./sample.mp4 rtsp: listen: "127.0.0.1:28554" api: listen: "" srtp: listen: "" webrtc: listen: ""
go2rtc -c sample-go2rtc.yaml

Open a second terminal on the same computer and play the local RTSP stream. You should see a moving color pattern and hear a steady tone.

ffplay -rtsp_transport tcp rtsp://127.0.0.1:28554/sample

With the test server still running, request a stream that was never configured. The expected response is 404.

ffprobe -v error -rtsp_transport tcp rtsp://127.0.0.1:28554/missing

Verified with go2rtc 1.10.0 on a Mac with Apple silicon. The /sample stream delivered decodable H.264 video and AAC audio. The /missing stream returned 404.

If the sample plays, try your camera’s source URL next. If it does not play, check that sample.mp4 is next to the configuration file and that go2rtc can find FFmpeg. Stop the test server when you finish.

go2rtc documentation for FFmpeg file sources

go2rtc.yaml: Adding RTSP Camera Streams

Standalone go2rtc reads go2rtc.yaml from its working directory by default. The streams: section maps names to sources. Use separate names for main and sub-streams when you want to choose their quality explicitly.

Local Network Configuration Example

api: listen: "127.0.0.1:1984" rtsp: listen: ":8554" username: viewer password: "CHANGE_TO_A_UNIQUE_PASSWORD" streams: frontdoor: rtsp://admin:password@192.168.1.101:554/h264/ch1/main/av_stream backyard: rtsp://admin:password@192.168.1.102:554/h264/ch1/main/av_stream garage: rtsp://admin:password@192.168.1.103:554/stream1

This example keeps the API on the server itself and requires credentials for RTSP viewers on other devices. Open the Web UI on that server at http://127.0.0.1:1984. The viewer URL is rtsp://viewer:YOUR_PASSWORD@go2rtc-host:8554/frontdoor. Restrict port 8554 to trusted viewers with your local firewall; authentication does not encrypt RTSP.

Verify one stream from source to viewer

For one viewer that already plays the camera reliably, use the camera URL directly. A named go2rtc stream helps when Frigate, Home Assistant and other viewers need to share one upstream connection.

  1. Open the camera’s source URL directly with VLC or FFplay on the go2rtc host.
  2. Set that URL as the source for frontdoor in go2rtc.yaml. Restart go2rtc and open its local Web UI on port 1984 to confirm the stream name.
  3. In the viewer, open the go2rtc RTSP URL on port 8554. Use the go2rtc viewer credentials when configured and check video and audio separately.
ffprobe -rtsp_transport tcp -show_entries stream=codec_type,codec_name rtsp://127.0.0.1:8554/frontdoor

The 127.0.0.1 command checks the output on the go2rtc host. go2rtc skips restream authentication on loopback. Test from your viewing device to confirm the restream credentials.

go2rtc’s loopback handling

Local check on 2026-11-11 with go2rtc v1.9.15. FFmpeg published a synthetic source to MediaMTX and decoded the go2rtc output over TCP. The output contained 640 × 360 H.264 video at 15 fps and AAC audio.

Generate the same local RTSP test signal

Separate Main and Sub-Stream Names

streams: reolink_main: rtsp://CAMERA_USER:CAMERA_PASS@CAMERA_IP:PORT/Preview_01_main reolink_sub: rtsp://CAMERA_USER:CAMERA_PASS@CAMERA_IP:PORT/Preview_01_sub

Adding an ONVIF Source by IP

streams: hikvision_cam: onvif://admin:password@192.168.1.100

After editing go2rtc.yaml, restart go2rtc and inspect the named stream in the local Web UI. If the source cannot open there, check the camera URL and credentials before troubleshooting the viewer. See the maintainer's RTSP server and authentication documentation.

go2rtc Source URLs by Camera Brand

Brandgo2rtc streams: entry
Reolinkrtsp://CAMERA_USER:CAMERA_PASS@CAMERA_IP:PORT/Preview_01_main
Hikvisionrtsp://CAMERA_USER:CAMERA_PASS@CAMERA_IP:PORT/Streaming/channels/101
Dahuartsp://admin:pass@ip:554/cam/realmonitor?channel=1&subtype=0
Axisrtsp://root:pass@ip/axis-media/media.amp
Taportsp://camera_user:camera_password@ip:554/stream1
Amcrestrtsp://admin:pass@ip:554/cam/realmonitor?channel=1&subtype=0
ONVIF-compatible cameraonvif://user:pass@ip

These are example paths for supported models; verify the exact camera and firmware. Tapo uses its separate Camera Account. See the full RTSP URL list → for more brands.

go2rtc with Frigate NVR

  1. For a new camera, open Settings → Global configuration → Camera management → Add Camera if your Frigate version includes the wizard. It configures the named restream and live view mapping.
  2. For an existing camera, check Settings → System → go2rtc Streams for its source. If it is missing, choose Add stream and enter the camera’s documented stream URL. Copy the exact stream name into your viewer URL.
  3. If live view works in Frigate but fails in Home Assistant, match the primary go2rtc stream name to the Frigate camera name or explicitly map it under live → streams. For a separate RTSP player, use the Frigate host’s LAN address and configured RTSP port.

Official Frigate setup guide

For manual setup, adapt this example in Frigate’s config.yaml.

go2rtc: streams: frontdoor: rtsp://camera_user:camera_password@192.168.1.101:554/stream1 cameras: frontdoor: ffmpeg: inputs: - path: rtsp://127.0.0.1:8554/frontdoor input_args: preset-rtsp-restream roles: - detect - record

Use the same stream name from go2rtc.streams in your viewer URL. If you enable RTSP authentication, supply those restream credentials in the viewer. Follow the official Frigate restream guide for authentication and Docker port configuration.

rtsp://frigate-host-ip:8554/frontdoor

Home Assistant + Frigate users: Open the named restream in SmartRTSP when its configured host RTSP port is reachable from your local network.

Viewing go2rtc Streams in SmartRTSP

SmartRTSP can view compatible go2rtc RTSP restreams. Check source and viewer codec support, credentials, and network reachability before connecting. A shared restream can reduce direct connections to cameras that limit concurrent viewers.

  1. 1. Confirm the named source opens in the Web UI on the go2rtc server. With the local API configuration above, open http://127.0.0.1:1984 on that server.
  2. 2. Open SmartRTSP on the device where you want to watch.
  3. 3. Tap + → Manual URL
  4. 4. Paste the complete local RTSP address using the configured viewer port. For a password-protected restream, use its own RTSP account.
  5. 5. Connect and confirm video playback. If it fails, check the stream name, viewer credentials, LAN firewall, and codec support.

Note: go2rtc streams are available on your local network. For remote access from outside your home, connect via VPN first, then use the same RTSP URL with the internal IP.

Official setup and security references

Reviewed October 18, 2026. The examples distinguish standalone go2rtc, Frigate restreaming, and Home Assistant's managed integration. Check the documentation for the installation and version you run.

go2rtc FAQ

Does go2rtc re-encode the stream?

A compatible RTSP source can be restreamed without video re-encoding, preserving the encoded video quality. Forwarding still uses CPU and bandwidth. Explicit FFmpeg transcoding, such as converting a codec for a browser, adds processing work.

What are the default go2rtc ports?

Standalone go2rtc uses TCP 1984 for the Web UI and API, TCP 8554 for RTSP, and TCP or UDP 8555 for direct WebRTC. Check your configured ports in Frigate or Home Assistant.

Can go2rtc replace a dedicated NVR?

go2rtc is a streaming server, not an NVR — it does not record. For recording, pair it with Frigate NVR (which uses go2rtc internally) or another DVR solution. go2rtc's job is stream re-broadcasting and format conversion.

Is go2rtc free and open source?

Yes. go2rtc is fully open source (MIT license) and free to use. It is maintained by AlexxIT on GitHub.

SmartRTSP

Watch a compatible camera or recorder’s RTSP stream on your local network. SmartRTSP is available for iPhone, iPad, Mac, Apple TV, Windows and Android, including compatible Android TV and Google TV devices with Google Play.

Choose your device and download SmartRTSP