This guide walks through bringing a Dahua IP camera online, adding it to a Dahua NVR, and building a working RTSP stream URL for third-party clients, a video wall, or the SKYLINE Surveillance Management System (SSMS). The commands and URLs below are taken from Dahua's standard behaviour; always substitute your own IP addresses and credentials. If you would rather have this done for you, SKYLINE installs, configures and supports Dahua across Saudi Arabia — call +966 50 993 9334 or see our Dahua CCTV service page.
1. Know the default Dahua ports
Before anything connects, confirm these standard Dahua service ports are open between camera, recorder and client (and never expose them raw to the internet — put them behind a firewall/VPN):
- TCP 37777 — device/SDK communication (used by ConfigTool, SmartPSS, the NVR adding the camera via the Dahua private protocol).
- UDP 37778 — device communication (UDP).
- HTTP 80 — web UI.
- HTTPS 443 — secure web UI.
- RTSP 554 — live stream (some older models use 1554 — verify in the camera's Setup > Network > Port page).
2. Initialize the camera with ConfigTool
A brand-new Dahua camera ships uninitialized and has no usable password until you activate it. Download ConfigTool from the official Dahua Support > Download Center, run it on a PC in the same LAN/subnet as the camera, and:
- Open the Device list; uninitialized devices are flagged as such.
- Select the camera and click Initialize.
- Set a strong
adminpassword (must include uppercase, lowercase, a number and a special character) and a recovery email/security question.
Then set the network address. For a single device click Modify IP and enter a static IP, subnet mask and gateway on the same subnet as your NVR:
IP Address : 192.168.1.108
Subnet Mask: 255.255.255.0
Gateway : 192.168.1.1For a rollout, select multiple cameras and use Batch Modify IP with a start IP — ConfigTool assigns consecutive addresses (this requires all selected devices to share the same login password). You can also push firmware with Device Upgrade > Batch Upgrade so the whole fleet is on a known-good build.
3. Verify the camera and set the streams
Browse to the camera at http://192.168.1.108, log in as admin, and under Setup > Camera > Video confirm the two encoded streams:
- Main Stream — full resolution, used for recording and evidence (RTSP
subtype=0). - Sub Stream — lower resolution/bit-rate, used for multi-view and remote/low-bandwidth viewing (RTSP
subtype=1).
Set the codec to H.265 (or Smart Codec) where supported to cut storage and bandwidth roughly in half versus H.264.
4. Add the camera to the NVR
On the NVR go to Main Menu > Camera > Registration (Add Device). The fastest path on a Dahua-to-Dahua system is the native protocol:
- Click Device Search — the NVR lists Dahua cameras on its network.
- Tick the camera and click Add. Choose Dahua/Private (TCP 37777) for full feature support, or ONVIF (HTTP 80) for third-party or mixed-vendor cameras.
- Enter the camera's
admincredentials. The channel should go green/online.
If the camera stays offline, the usual culprit is a subnet mismatch (camera and NVR LAN port must be on the same subnet) or wrong credentials.
5. Build the RTSP stream URL
The Dahua RTSP URL pattern is fixed. Use it for VLC, ffmpeg, a video wall, or SSMS:
rtsp://<user>:<password>@<ip>:554/cam/realmonitor?channel=N&subtype=0Where channel = the channel number (1 for a standalone IP camera; on an NVR it is the NVR channel that the camera occupies, e.g. 1–16), and subtype = 0 for the main stream or 1 for the sub stream. Concrete examples:
# Main stream, channel 1, direct from a camera
rtsp://admin:Skyline%40123@192.168.1.108:554/cam/realmonitor?channel=1&subtype=0
# Sub stream, channel 3, pulled from the NVR
rtsp://admin:Skyline%40123@192.168.1.10:554/cam/realmonitor?channel=3&subtype=1Important: URL-encode special characters in the password — an @ becomes %40, a # becomes %23. A raw @ in the password is the single most common reason an otherwise-correct Dahua RTSP URL fails.
6. Test from the command line
Confirm the port is reachable, then open the stream:
# Is RTSP 554 open on the device?
nc -vz 192.168.1.108 554
# Probe the stream with ffprobe (shows codec, resolution, fps)
ffprobe "rtsp://admin:Skyline%40123@192.168.1.108:554/cam/realmonitor?channel=1&subtype=0"
# Open it in VLC from the CLI
vlc "rtsp://admin:Skyline%40123@192.168.1.108:554/cam/realmonitor?channel=1&subtype=0"7. Set the recording schedule
On the NVR under Main Menu > Storage > Schedule, define when each channel records — combine continuous, motion (MD/SMD) and event recording so storage is spent where it matters. Then under Storage > Disk Manager confirm the HDD is set to Read/Write and overwrite is enabled so recording loops once the disk is full.
Common fixes
- RTSP fails / 'cannot open': URL-encode the password, confirm port 554 (or 1554), and check the channel/subtype values.
- Camera offline on NVR: put camera and NVR on the same subnet; re-enter credentials.
- ONVIF add fails: enable ONVIF on the camera (Setup > Network > ONVIF) and verify HTTP 80 is open.
- Password locked out: use the official Dahua reset (security question or challenge-file workflow) — not unofficial tools.
Need a Dahua estate configured, integrated into DSS or SSMS, and supported in Saudi Arabia? See the service page, browse CCTV & Surveillance on the Marketplace, or contact us — phone +966 50 993 9334.
Comments
0 total · 0 threads