What is port forwarding The router rule that lets the outside reach your recorder

Port forwarding is a rule on a router that passes requests arriving from the internet on a chosen port to one device on the local network, such as a CCTV recorder. Without it the router blocks them. GoKavach can use a forwarded RTSP port, and needs no port forwarding at all when the site connector is used.

Free forever for 1 camera · no card · uses your cameras

Free: app and email alerts. WhatsApp from Starter (₹999 a month in India), phone calls from Pro. See plans

How does port forwarding work?

A router shares one public internet address among every device in the building, a job called network address translation, or NAT. It lets devices inside start conversations with the internet but refuses conversations started from outside, because it doesn't know which device they are for. A port forwarding rule supplies the answer: anything arriving on this port goes to that device.

A port is a number that separates one kind of traffic from another on the same address. A recorder's RTSP video is on port 554 by default. A rule might say that outside port 5540 goes to 192.168.1.64 port 554, the recorder. A camera that is opened inside the building at 192.168.1.64 port 554 is then opened from outside at the site's public address, port 5540. The recorder should have a fixed local address so the rule keeps pointing at it.

What does a port forwarding rule look like on a router?

Routers list it under port forwarding, virtual server or NAT, usually in the advanced settings. Each rule is one row with the same few fields.

  • Name: a label for your own reference, such as Recorder RTSP.
  • External port: the number people outside connect to, 5540 in the example.
  • Internal address: the recorder's address on the local network, 192.168.1.64.
  • Internal port: the port the recorder listens on, 554 for RTSP.
  • Protocol: TCP, UDP or both. RTSP needs TCP.

Which ports does a CCTV recorder use?

A recorder listens on several ports, and each is a separate door. Port 80 serves its settings pages to a web browser. Port 554 serves live video by RTSP. A further port carries the maker's own app and computer software: 8000 by default on Hikvision recorders and 37777 on Dahua. The recorder's network menu lists them and lets you change each number.

Forward only the door a given use needs. Outside software that only reads video needs the RTSP port and nothing else. The settings pages on port 80 are the door most worth keeping shut.

Is port forwarding safe for a CCTV recorder?

It carries a real risk, because the recorder's login becomes reachable by anyone on the internet, and automated scanners find open ports quickly. Recorders with default passwords or old firmware are a common target. An unusual outside port number hides the door from casual scans only; anyone who finds it still meets the same login.

If you forward a port, forward only the one you need, set a long unique password, keep the recorder's firmware current and switch off features that open ports by themselves. Port forwarding also can't work when the internet provider shares one public address among many customers. DDNS is usually set up alongside it so the site can be found when its address changes.

How is port forwarding different from UPnP, a DMZ and DDNS?

These four sit near each other in a router's menu and are often confused.

  • Port forwarding: one rule you write, sending one outside port to one device.
  • UPnP: devices ask the router to open ports for them, with no rule written by anyone. Ports can then be open that you never chose.
  • DMZ: every port that has no rule of its own is sent to one device. Putting a recorder there exposes all of its doors at once, so avoid it.
  • DDNS: a name that follows the site's changing address. It finds the router; it opens nothing.

What are the common port forwarding problems and how do you recognise them?

The usual sign is a recorder that answers inside the building and times out from anywhere else. Test from a phone on mobile data, not on the site's Wi-Fi, because many routers can't loop a request back to themselves and an inside test proves nothing.

  • It worked, then stopped after a power cut: the router gave the recorder a new local address and the rule points at the old one. Give the recorder a fixed address.
  • The rule is right and nothing arrives: there are two routers in a row, typically the provider's box and your own. The rule is needed on both, or the first is set to pass everything through.
  • It never worked on this line: the provider uses a shared address, called carrier-grade NAT. No rule on your router can help.
  • One port works and another doesn't: some providers block certain low-numbered ports. Choose a different outside number.

What should you ask an installer about port forwarding?

Ask for a written list of every port open on your router, which device each leads to, and why. Ask whether UPnP is on, on the router and on the recorder, and have it switched off if nobody can say what relies on it. Ask whether the recorder has a fixed local address and whether its password was changed from the one it shipped with.

Installers often open more than is needed because it gets the phone app working quickly. If remote viewing works through the maker's app by scanning a code, you may need no forwarded ports at all.

Do you need port forwarding to get alerts from your cameras?

No. GoKavach connects in one of two ways. Directly, it reaches the recorder at a public IP or DDNS name with the RTSP port forwarded, which suits sites where an installer has already set that up. You enter the address and the outside port, and GoKavach reads RTSP over TCP through that rule. Alerts, live view and playback need nothing else. Hard-disk alerts and the camera siren on Hikvision and Dahua firmware also use the recorder's web port, 80, so on a direct connection they work only if that port is reachable too.

Otherwise the site connector, a small app on an always-on Windows, Mac or Linux computer at the location, makes an outgoing connection only. The router sees ordinary outbound traffic, so nothing is opened and no rule is added. Viewing CCTV remotely without a static IP explains the choice, and the Hikvision page shows a typical setup. Whichever you pick, a camera offline alert tells you when the connection is lost.

Port forwarding: key facts

What it is
A router rule sending an outside port to one inside device
Also listed as
Virtual server or NAT rule on some routers
Typical CCTV use
Reaching a recorder's RTSP port, 554 by default
Main risk
The recorder's login is exposed to the internet
Doesn't work when
The provider uses carrier-grade NAT
With GoKavach
Not needed when the site connector is used

What GoKavach is, and isn't

GoKavach is AI monitoring for the CCTV cameras you already have. It watches Hikvision, Dahua, CP Plus and almost any other brand around the clock and, when someone is where they shouldn't be, alerts you within seconds: in the app and by email on every plan, by WhatsApp and SMS on paid plans, and by phone call on the larger ones.

  • GoKavach doesn't change your router's settings; a forwarding rule is set up by you or your installer.
  • The site connector needs a computer at the location that stays switched on; without one, direct connection is the only route.
  • A direct connection can't work on a line with a shared public address, whatever rules the router has.

Port forwarding FAQ Questions, answered

What owners ask before they connect their first camera.

Which port do I forward for a DVR's RTSP stream?

Forward to the recorder's RTSP port, which is 554 unless it has been changed in the recorder's network settings. The outside port number can be different, and choosing an uncommon one cuts down casual scanning, though it is no substitute for a strong password.

Why is port forwarding not working for my CCTV?

The usual reasons are a recorder whose local address changed, two routers in a row with the rule on only one, a firewall on the router, or an internet provider using a shared public address. Test from a mobile connection, not from inside the same network.

Is UPnP the same as port forwarding?

UPnP is automatic port forwarding: a device asks the router to open ports for it without anyone setting a rule. It is convenient, but it means ports can be open that you never chose. Many people switch it off and add only the rules they want.

Can GoKavach connect to my recorder without port forwarding?

Yes. Install the site connector on any always-on computer on the same network as the recorder, including a Raspberry Pi. It finds recorders on the local network and links them through an outgoing connection, with no router changes. The cameras are then checked exactly as they would be over a direct connection.

Do I need a static IP address for port forwarding to a DVR?

No. The line needs a public address, but it doesn't have to be a fixed one. When the public address changes, a DDNS hostname follows it and the forwarding rule carries on working. What should be fixed is the recorder's address inside the building, which the rule points at.

Should I forward port 80 on my CCTV recorder?

Avoid it where you can. Port 80 leads to the recorder's settings pages, so forwarding it puts the administrator login in front of the whole internet. Forward only the port a particular use needs. A direct GoKavach connection needs only the RTSP port for alerts; disk alerts and the siren need port 80 as well, which is a reason to use the site connector instead, since it carries that port with no rule on the router.

Still have questions? connect@gokavach.com

GoKavach pricing Start free. Move up a plan as you add cameras.

Every plan watches every camera around the clock, with intruder alerts in the hours you set. Bigger plans add cameras, people, phone-call alerts and longer storage of alert clips.

Free

Try it on one camera, for as long as you like.

$0

The same in every country

Free forever

  • 1 camera
  • 1 team member
  • Checks every 10 seconds, and every second while something moves
  • Email and app alerts
  • Alert pictures and clips kept 30 days
Start free

Starter

For one shop or home.

$19 /month

₹999/month in India

Renews until you cancel

  • 2 cameras
  • 2 team members
  • Checks every 5 seconds, and every second while something moves
  • WhatsApp, SMS, email and app alerts
  • Alert pictures and clips kept 60 days
  • 1 AI check in your own words
Choose Starter

Business

For many locations and larger teams.

$129 /month

₹6,999/month in India

Renews until you cancel

  • 16 cameras
  • 10 team members
  • Checks every 5 seconds, and every second while something moves
  • Phone calls, WhatsApp, SMS, email and app alerts
  • Alert pictures and clips kept 180 days
  • 10 AI checks in your own words
Choose Business

Enterprise

For more than 16 cameras, chains and guard companies.

Let's talk
  • More than 16 cameras and as many team members as you need
  • Checks every camera as often as every 5 seconds
  • Help setting up at each location
  • A named contact and agreed response times

Every plan includes

  • Areas, lines and hours you choose
  • A picture and clip with every alert
  • Live view on phone and computer
  • Camera offline and DVR disk alerts
  • Arming by your shop hours
  • Counter-left-empty alerts
  • Daily and weekly summaries
  • Reports on alerts and busy hours
  • A panic button for owners, admins and operators

Paid plans start the day you upgrade. Switch or cancel any time from Settings; after cancelling, your plan runs to the end of the paid period, then moves to Free. Prices exclude taxes.

Book a free demo Prefer we set it up with you?

In a free 15-minute call we connect one of your cameras and send a live test alert to your phone. Or start free on your own.

  • Works with the DVR or NVR you already have
  • We help with the connection, public IP or not
  • A live WhatsApp and phone-call alert to your phone
  • Free forever for 1 camera, no card needed

Book your free demo

Leave your number and we'll call to pick a time.

We reply within a day. No spam, no card. By submitting you agree to be contacted on WhatsApp/phone and to our privacy policy.