Most Common Causes of RTSP Disconnections
Disconnections after a successful connection are distinct from initial connection failures. They typically originate from one of three sources:
Wi-Fi packet loss or signal fluctuations interrupt the TCP stream. Even brief packet loss causes RTSP to drop and reconnect.
Camera CPU or memory overload (high bitrate, too many concurrent streams) causes the encoder to crash and restart.
Router terminates RTSP sessions it considers idle — especially common with the RTSP ALG feature enabled.
Fix Checklist — 6 Steps
Assign a static IP address to your camera
When a camera has a DHCP-assigned IP address, the router may issue a different IP after the lease expires or after a reboot. This makes the RTSP URL (which contains the IP) invalid, causing a disconnection. Fix this by either:
- › Setting a DHCP reservation in your router (recommended) — the camera keeps using DHCP but always gets the same IP
- › Setting a static IP directly in the camera's web UI under Network Settings
Check camera Wi-Fi signal quality
Even brief drops in Wi-Fi signal quality cause RTSP TCP connections to break. Check your camera's Wi-Fi signal indicator — most cameras show signal strength in their web UI under Network Status. If signal is below 60%, consider adding a Wi-Fi access point, a Powerline adapter, or switching to a PoE Ethernet connection. PoE cameras have near-zero disconnection issues compared to Wi-Fi cameras.
Disable RTSP ALG in router settings
Many consumer routers include an RTSP ALG (Application Layer Gateway) or "RTSP helper" feature that was designed to help with NAT traversal. In practice, it often interferes with RTSP streams and causes sessions to be dropped after 30–120 seconds. Disable it in your router's advanced settings.
Reduce camera stream load
If the camera's CPU is under heavy load — due to a high-bitrate main stream, H.265 encoding, or multiple concurrent connections — the encoder may crash and restart, dropping the stream. Switch to the camera's sub-stream in SmartRTSP and reduce the main stream bitrate in the camera web UI to 2–4 Mbps.
Check for camera firmware updates
RTSP stream stability bugs are commonly fixed in firmware updates. Log into the camera web UI and check for a firmware update under System → Firmware → Check for Update. After updating, test whether the disconnections persist. Note: on some cameras, auto-update can also introduce instability — if disconnections started after a recent update, check the manufacturer's release notes.
Restart the camera
After extended uptime, some cameras develop memory leaks in their streaming software, causing gradual instability and eventually disconnections. Unplug the camera's power for 30 seconds, then plug it back in. This fully resets the camera's memory and stream encoder state. If the camera has a restart option in its web UI, use that — it is equivalent and faster.
PoE vs Wi-Fi for RTSP Stability
Connection stability is the single biggest advantage of PoE (Power over Ethernet) cameras over Wi-Fi cameras for RTSP streaming:
- ✓ Near-zero packet loss under normal conditions
- ✓ Consistent throughput — not affected by Wi-Fi interference
- ✓ Power and data over a single cable
- ✓ Recommended for any fixed outdoor or critical indoor installation
- ~ Signal varies with distance and obstacles
- ~ Interference from neighboring networks
- ~ Throughput drops during channel congestion
- ~ Acceptable for low-bitrate sub-stream viewing only
Router Settings That Affect RTSP
| Setting | Recommended | Effect on RTSP |
|---|---|---|
| RTSP ALG / RTSP Helper | Disable | Causes sessions to drop after 30–120 seconds |
| NAT Session Timeout | 1800+ seconds | Low values expire RTSP sessions before reconnect |
| QoS / Traffic Priority | Prioritize camera IP | Prevents camera traffic from being deprioritized on busy networks |
| AP / Client Isolation | Disable | Blocks devices on the same Wi-Fi from communicating |
| DHCP Lease Time | Use DHCP reservation | IP change on lease renewal breaks RTSP URL |
Checking Camera Concurrent Stream Limits
Most IP cameras support only 1–3 simultaneous RTSP connections to the same stream. If another app, NVR, or device is already connected to the camera, adding SmartRTSP may push it over the limit — causing either a refused connection or a forced drop of an existing one.
- › Check your camera's spec sheet for "Max simultaneous streams" or "Max connections"
- › Disconnect any NVR or other viewer apps before testing
- › Using a sub-stream URL sometimes has a separate connection limit from the main stream