Guides · Camera setup
TP-Link Tapo RTSP and ONVIF setup
Updated 29 September 2026
Mains-powered Tapo cameras offer RTSP and ONVIF, but only after you create a camera account in the Tapo app. Your TP-Link ID does not work here.
At a glance
| Main stream | rtsp://USERNAME:PASSWORD@CAMERA-IP:554/stream1 |
|---|---|
| Sub stream | rtsp://USERNAME:PASSWORD@CAMERA-IP:554/stream2 |
| RTSP port | 554 |
| ONVIF port | 2020 |
| Account | The camera account you create in the Tapo app |
Replace USERNAME, PASSWORD, and CAMERA-IP with your own. The main stream is the full-resolution one to record; the sub stream is a lighter copy for small previews.
Before you start
- Give the camera a fixed IP address with a DHCP reservation on your router, so its stream address never changes.
- Use a strong password, but avoid
@,:,/, and#. They have special meanings in stream addresses, and some cameras mishandle them. - Update the camera’s firmware. Menu names differ between firmware versions and models, so treat the ones below as a guide to where to look.
Turn on RTSP and ONVIF
- In the Tapo app, open the camera and tap the settings gear.
- Go to Advanced Settings › Camera Account and create a username and password. This account is only used for RTSP and ONVIF.
- Note the camera’s IP address from Device Info in the same settings.
Turn on motion events
- Turn on motion detection in the camera’s settings in the Tapo app, and set its sensitivity and zones there. ONVIF motion events follow those settings on models that send them.
- Keep privacy mode off on cameras you want to record. It stops the video stream completely.
Add the camera to Loki Eye
- Add the camera in Loki Eye with its main stream address from the table above. Loki Eye probes the stream to check that it plays.
- Enter the ONVIF port so motion events can reach the recorder. Loki Eye tests the port as you add the camera.
- Choose continuous recording, or recording on motion with pre-roll and post-roll.
Things to know about TP-Link Tapo cameras
- Battery-powered Tapo cameras, such as the C4xx outdoor range, do not offer RTSP or ONVIF.
- Firmware updates occasionally change how third-party access works. If a working camera stops connecting after an update, check the Camera Account in the Tapo app again.
If it does not work
- The stream will not open. Try the same address in VLC, under Media › Open Network Stream. If VLC cannot play it either, the problem is on the camera: RTSP switched off, the wrong port, or the wrong password.
- You are not sure of the stream address. ONVIF Device Manager, a free Windows tool, finds cameras on your network and shows their stream addresses.
- The stream drops when another app is watching. Cameras accept only a few stream connections at once. Close other viewers, or point them at the sub stream.
- No motion events arrive. Check that motion detection is on in the camera, that the ONVIF port is right, and that the camera clock is correct. ONVIF requests carry a timestamp, and a camera whose clock is minutes off can refuse them. Setting the camera to sync with an NTP time server fixes this for good.
Questions
What is the Tapo RTSP URL?
rtsp://USERNAME:PASSWORD@CAMERA-IP:554/stream1 for the full-quality stream and /stream2 for the lower-quality one, using the camera account from the Tapo app.
What is the Tapo ONVIF port?
2020.
Can I use my TP-Link ID for RTSP?
No. RTSP and ONVIF only accept the camera account created under Advanced Settings › Camera Account.
Does the Tapo app keep working?
Yes. The app and its cloud features keep working alongside a local recorder.
Loki Eye records your cameras to your own disk on Windows, macOS, and Linux. Free for two cameras, with no account.
Download free