Language:

Partner Portal

How to add an Ajax camera to an Ajax NVR on a different network

Updated

How to add an Ajax camera to an Ajax NVR on a different network

You can add an Ajax camera to an Ajax NVR even if they are connected to different networks. This allows viewing video from the camera alongside video from other cameras added to the same NVR, without connecting the camera to the NVR's local network.

This article explains how to set up the camera for connection to the NVR, configure port forwarding, and add the camera to the NVR.

Prerequisites

Before adding an Ajax camera to an Ajax NVR on a different network, make sure that:

  • The camera runs firmware version 2.360 or later.

  • The NVR runs firmware version 2.701 or later.

  • You use one of the following app versions or later:

    • Ajax PRO: Tool for Engineers — 2.59.
    • Ajax Security System — 3.59.
    • Ajax Desktop — 5.59.
    • Ajax PRO Desktop — 5.59.
  • The required Ajax NVR is added to the space.

  • You have permission to configure the space.

  • The router to which the camera is connected supports port forwarding, and you have access to its settings.

  • The camera has a static local IP address or a reserved DHCP lease on the router. Otherwise, if the camera's IP address changes, the port forwarding rules will no longer work.

  • The router has a static public IP address or a domain name (DDNS) that points to its current IP address if the camera is accessed over the internet.

How to configure port forwarding

To add an Ajax camera to an Ajax NVR on a different network, configure port forwarding on the router to which the camera is connected. This allows the NVR to access the camera over the internet.

If you are adding multiple cameras connected to the same router, configure separate port forwarding rules for each camera.

When adding a single camera

Preparing the cameras

  1. In the Ajax app, go to the camera settings: Connection → Ports.

  2. If necessary, change the port numbers. Make sure that each port has a unique number.

  3. Note the configured ONVIF®, HTTPS, and RTSP port numbers. You will need them to configure port forwarding.

Configuring port forwarding on the router

  1. Open the settings for the router to which the camera is connected.

  2. Go to the port forwarding settings.

  3. Create port forwarding rules for the camera's ONVIF®, HTTPS, and RTSP ports. For external port numbers, we recommend using numbers in the range of 1025 to 49000. Configure the following parameters for each rule:

    Parameter

    ONVIF®

    HTTPS

    RTSP

    External port

    Use 8080 (the default when you are adding a single camera) or choose an available port.

    For convenience, use the same port number as the camera's internal ONVIF® port, if available.

    Use the same port number as the camera's internal HTTPS port.

    8443 is the default when you are adding a single camera.

    Use the same port number as the camera's internal RTSP port.

    8554 is the default when you are adding a single camera.

    Internal IP address

    Enter the camera's local IP address.

    Enter the camera's local IP address.

    Enter the camera's local IP address.

    Internal port

    Enter the camera's ONVIF® port (default: 8080).

    Enter the camera's HTTPS port (default: 8443). Change this port in the camera settings when adding multiple cameras.

    Enter the camera's RTSP port (default: 8554). Change this port in the camera settings when adding multiple cameras.

    Protocol

    TCP

    TCP

    TCP

  4. Save the port forwarding rules.

  5. Record the router's external IP address and the external port configured for ONVIF®. You will need them to add the camera to the NVR.

    If the router's external IP address is not displayed in its settings, use an online IP address lookup service, such as 2ip.ua, to find the address. If you cannot add the camera to the NVR, contact your internet service provider to check whether the external IP address allows incoming connections.

When adding multiple cameras

If you are adding two or more cameras connected to the same router, configure a unique external port for each camera, as well as unique internal HTTPS and RTSP ports.

Preparing the cameras

  1. Add each camera to the space where the required NVR is added. If a camera is already added to the space, skip this step for that camera.

  2. In the Ajax app, open each camera's settings: Connection → Ports.

  3. Configure the ports according to the following rules:

    • ONVIF® ports can be the same across cameras.
    • HTTPS and RTSP ports must be unique for each camera connected to the same router.
  4. Record the configured port numbers for each camera. Port numbers can range from 1 to 65535. We recommend using ports in the range of 1025 to 49000.

Configuring port forwarding on the router

  1. Open the settings of the router to which the cameras are connected.

  2. Go to the port forwarding settings.

  3. Create port forwarding rules for each camera's ONVIF®, HTTPS, and RTSP ports. Configure the rules as follows:

    • ONVIF®: forward an external port to the camera's ONVIF® port. Use a different external port for each camera.
    • HTTPS: forward the camera's HTTPS port to the same port on that camera.
    • RTSP: forward the camera's RTSP port to the same port on that camera.
    • Internal IP address: enter the camera's local IP address.
    • Protocol: select TCP for all rules.
  4. Save the port forwarding rules.

  5. Record the router's external IP address and the external ONVIF® port assigned to each camera.

How to add a camera to an Ajax NVR on a different network

After preparing the camera and configuring port forwarding on the router, add the camera to the Ajax NVR.

To add a camera to an Ajax NVR on a different network:

  1. Select the required space and go to the device list.

  2. Add the camera:

    1. If no cameras have been added to the space:

      1. In the device list, tap Add device.

      2. Scan the camera's QR code or enter the ID manually.

      3. Enter the camera name and select a group and room.

      4. Tap Confirm.

      5. Check that the video feed belongs to the camera being added. Tap Add device.

      6. In the list, select the required NVR.

      7. Tap Manually.

    2. If cameras have already been added to the space:

      1. In the device list, select the required NVR.

      2. In the NVR settings, go to the Cameras tab.

      3. Tap Add camera.

      4. Tap Add manually and select Native video device.

      5. Select the required camera and tap Add device.

      6. Tap Manually.

  3. Enter the router's external IP address.

  4. Enter the camera's external ONVIF® port configured on the router.

  5. Tap Confirm.

After the camera is added, it appears as a channel on the Ajax NVR. Repeat these steps for each additional camera.

Possible issues and troubleshooting

The option to add the camera manually is unavailable

  • The Manually option is not displayed. Update the Ajax app to the latest version.
  • The Manually option is disabled. Update the NVR and camera firmware to versions that support adding cameras manually.

The Manually option is available for Ajax video devices running firmware version 2.360 or later and Ajax NVRs running firmware version 2.701 or later in the following app versions or later:

  • Ajax PRO: Tool for Engineers — 2.59
  • Ajax Security System — 3.59
  • Ajax Desktop — 5.59
  • Ajax PRO Desktop — 5.59

The camera is added to the NVR, but the video stream is unavailable

If the camera has been added to the NVR via port forwarding but appears offline in the Ajax app, check the following:

  • The camera is powered on and connected to the network.
  • The camera's RTSP port matches the external RTSP port configured in the router's port forwarding rules.
  • The port forwarding rule uses TCP and specifies the camera's correct IP address.

The camera cannot be added to the NVR via port forwarding

Check the router's port forwarding configuration. Make sure three separate rules are configured for the camera's current IP address:

  • HTTPS: forward the camera's HTTPS port.
  • RTSP: forward the camera's RTSP port.
  • ONVIF®: forward the configured ONVIF® port.

Make sure that:

  • All three rules use TCP.
  • The router's external HTTPS and RTSP ports match the camera's corresponding ports.
  • The external ONVIF® port configured in the router's port forwarding rules matches the port specified for the camera when it was added to the NVR.
  • Each rule specifies the camera's current IP address.
  • The router's WAN IP address was entered when the camera was added to the NVR.

The specified WAN IP address must be reachable from the network where the NVR is located. If the camera and NVR are connected to different LANs, make sure routing between these networks is configured. For connections over the internet, the router must have a reachable public IP address.

The camera worked previously, but now it is offline

Check the connection step by step.

  1. Check the camera.

    • Make sure the camera is powered on and connected to the network.
    • Check the camera's current IP address and the ports configured for HTTPS, RTSP, and ONVIF®.
  2. Check port forwarding.

    • Make sure three separate port forwarding rules are configured for the camera's current IP address.
    • Verify that all rules use TCP.
    • Check that the router's external HTTPS and RTSP ports match the camera's corresponding ports.
    • Make sure the external ONVIF® port matches the port specified when the camera was added to the NVR.
  3. Check network connectivity.

    • Check whether the router's WAN IP address is reachable from the network where the NVR is connected. To do this, send a ping request to the IP address, provided that the router allows ICMP requests.
    • If necessary, test connectivity using an ICMP request (ping). The router must allow ICMP responses, and a device on the NVR's network must be available to run the test.
  4. Check the router's WAN IP address.

    The camera may become unavailable if the router's WAN IP address changes after the camera is added to the NVR. The NVR may still be trying to connect to the camera using the previous address.

    To check this, compare the router's current WAN IP address with the address configured when the camera was added to the NVR. The previously configured address is not displayed in the Ajax app.

    If the addresses differ, try one of the following:

    • Restore the previous WAN IP address, if possible.
    • Remove the camera from the NVR and add it again using the router's current WAN IP address.

    If the issue persists, submit a problem report in the NVR settings. To do this, open the NVR settings, scroll down, and tap Report a problem. Then contact Ajax Support.