How CCTV actually works
From the camera's eye to your phone, explained the way a network engineer sees it — including what happens at the packet level.
1. Two camera species
Camera → coax cable → DVR. The camera is dumb — it just pushes a raw video signal. The DVR does all the digitizing, compressing, and storing.
Camera → PoE cable → NVR. The camera is its own tiny computer — it compresses its own video and sends it as network packets. One cable carries power and data.
2. The wiring, end to end
Everything before the router is your private network. Everything after it is where NAT, DDNS, and VPNs come in.
3. Three ways to reach it remotely
| Method | How it works | Tradeoff |
|---|---|---|
| Port forward + DDNS | Router forwards a port (554/8000) straight to the DVR; DDNS keeps a hostname pointed at your changing public IP | Simple but exposes a port directly to the internet — the classic hack vector |
| P2P cloud relay | DVR and phone both connect outbound to the vendor's cloud; cloud does NAT hole-punching to link them | Zero setup (scan a QR code), but your video may transit the vendor's servers |
| VPN | Phone joins a VPN tunnel first, then talks to the DVR on its private IP as if it were on the LAN | No port ever exposed — the recommended approach for office deployments |
4. Packet-level journey
Here is what actually happens to one packet of video as it leaves the camera and reaches your phone.
1. Camera captures a frame
Frame chopped into RTP packets
src 192.168.1.50:554 (camera)
dst 192.168.1.10:554 (NVR)
2. Packet crosses the LAN
No routing needed yet
src MAC: camera → dst MAC: NVR
3. NVR sends it toward you
src 192.168.1.10:51000
dst = cloud relay or VPN server
4. Router does NAT/PAT
192.168.1.10:51000
→ 103.21.x.x:61234
Router remembers this mapping
5. Hops across the internet, then unwraps at your phone
Cloud/VPN reverses the NAT or unwraps the tunnel
Phone decodes RTP → H.264 → video on screen
5. One habit that prevents most incidents
Never port-forward the DVR/NVR's admin interface directly onto the internet. VPN-first, or a P2P cloud app with strong unique passwords and current firmware — that single decision is the difference between a CCTV system and a public invitation.
