Skip to content

This guide isn’t available in Türkçe yet, so we’re showing the original English version.

How to Set Up Port Forwarding for Security Cameras

Port forwarding lets you reach a camera or recorder at home from the internet. Give the device a fixed local IP, forward only the ports it needs in your router, and change its default password. Manufacturer cloud apps or a VPN are often safer.

Updated
Time
30 minutes
Difficulty
Advanced
Applies to
Web

By Published Oct 6, 2026

Quick answer

  1. 1 Change the camera/NVR’s default password and update its firmware.
  2. 2 Reserve a fixed local IP for it in your router’s DHCP settings.
  3. 3 In Port Forwarding, add a rule: external port, internal IP and port, protocol (TCP/UDP as the maker specifies).
  4. 4 Find your public IP and test from mobile data.
  5. 5 Consider the maker’s cloud app or a VPN instead of opening ports.
On this page
  1. Before you start
  2. Prepare the camera or recorder
  3. Create the port forwarding rule
  4. Troubleshooting
  5. Frequently asked questions

Before you start

  • Access to your router
  • The camera’s required ports (from its manual)
  • A public IP address (not CGNAT)

Method 1 Prepare the camera or recorder

  1. Step 1: Secure it

    Set a strong unique password and install the latest firmware.

  2. Step 2: Find its ports

    Check the manual or settings: commonly HTTP (e.g. 80/8080), RTSP (554) and a device/service port. Change defaults to less common ports if the device allows it.

  3. Step 3: Reserve an IP

    In your router’s DHCP or Address Reservation settings, reserve a fixed IP for the camera’s MAC address (e.g. 192.168.1.50).

Method 2 Create the port forwarding rule

  1. Step 1: Open Port Forwarding

    In your router, find Port Forwarding, Virtual Server or NAT Forwarding.

  2. Step 2: Add a rule

    Enter a name, the external port, the camera’s internal IP and port, and the protocol (TCP, UDP or both) as specified by the maker. Save.

  3. Step 3: Test from outside

    Turn off Wi-Fi on your phone and connect on mobile data to your public IP:port (find your public IP by searching “what is my IP”), or use the camera app’s remote setting.

Troubleshooting

Can’t connect from outside

Check the camera’s IP didn’t change, the protocol is right, and test from mobile data (testing from inside your home often fails). Confirm you don’t have CGNAT.

Works for a while, then stops

Your public IP changed. Set up DDNS.

Frequently asked questions

Is UPnP the same as port forwarding?

UPnP opens ports automatically. It’s convenient but risky; manual rules are more controlled.

What’s the safest way to view cameras remotely?

A VPN to your home network, or a reputable maker’s cloud service with two-factor authentication.

Summary

Secure the camera, give it a reserved IP, and forward only its required ports in your router. Test from mobile data, use DDNS for changing IPs, and prefer a VPN or the maker’s app when you can.

Sources

Written by

James Chambo

Founder

James is the Founder and Senior Editor of OnlineHow with more than 20 years of experience in internet publishing.