How to enable network ports for camera integration
    • 03 May 2024
    • PDF

    How to enable network ports for camera integration

    • PDF

    Article summary

    For camera integration, Nureva® Console uses the default port 8931 to connect with the WebSocket server. This port is configurable in Nureva Console and can be set to any port number. Depending on the network and security setup, some unused and open ports can be blocked at the network, computer or router level.

    Nureva Console client and the camera software might need to be allowed to make connections and share sound location data using the default port or any other port. Enabling a network port on both a router and a computer involves several steps. The exact process can vary depending on the router and the computer’s operating system, but here’s a general outline of the steps you might need to take.

    Overview

    1. Identify the network port that the third-party camera requires or select a specific port.

      • The first step is to identify the network port that the third-party camera requires. This information can be found in the camera’s documentation. The default and most common port used by IP cameras is port 8931.

    2. Check if the port is open.

    3. Enable the required network port on the router or PC.

      • When the required network port and protocol (TCP or UDP) has been identified, if it is not already open, it must be enabled on the router or PC, depending on the level at which it’s blocked.

    4. Add the allowed hostnames.

      • The final step is to add the allowed hostnames to Nureva Console. This will allow Nureva Console to communicate with the third-party camera. The allowed hostnames are the IP addresses or hostnames of the cameras to be integrated with Nureva Console.

      • Open Nureva Console and go to Settings > Integrations > Local Integrations to add the allowed hostnames. Enter the IP address or hostname of the camera. Click the Save button to save the changes.

    After these steps have been completed, the third-party cameras will be able to communicate with Nureva Console and can be used for camera tracking.

    Note: While it is possible to allow ports on a local computer, we recommend getting support from the IT team when opening any port on a router to ensure only the ports required by the third-party camera are enabled. Enabling unnecessary ports can increase the security risk.

    Check if a network port is open


    Windows

    There are a few ways to check if a network port is open on a Windows® computer. Below are two easy options.

    Option 1

    1. Open the command prompt by pressing the Windows key + R and typing cmd

    2. Type netstat -aon and press Enter. Note that there is a space between netstat and -aon

    3. Look for the port numbers in the LISTENING state

      • These are the ports that need to be open for streaming

      • If the port numbers aren’t in the LISTENING state, they will need to be opened manually

    Command prompt active connections - option 1

    Option 2

    1. Open the command prompt by pressing the Windows key + R and typing cmd

    2. Enter netsh advfirewall firewall show rule name=all dir=in type=dynamic

    Command prompt connections list option 2

    macOS

    1. On a macOS® computer, open the Terminal application and enter netstat -an | grep LISTEN

      • A list of all the open ports will appear, along with the process ID (PID) verification service and name of the application using each port

    2. To confirm what a particular port is used for, look it up in the /etc/services file

    3. To view the contents of this file, enter cat /etc/services

    macOS services list - terminal

    Enabling a network port on a router

    The steps below for allowing a port will vary depending on the type of router. The process involves finding the port forwarding section in the router’s settings and adding a rule for allowing the port. The rule should specify the internal IP address of the camera and the external port number.

    1. Access router settings: Open a web browser on a device connected to the same network as the router. Enter the router’s IP address in the address bar. The default IP address is often 192.168.1.1 or 192.168.0.1. Enter the router’s admin username and password.

    2. Proceed to port forwarding: The exact location of this option will vary depending on the router’s interface. Look for Port Forwarding, Port Mapping or Virtual Server options. Then select which external ports should be forwarded to internal devices.

    3. Add a port forwarding rule: Next, add a new rule in the port forwarding section. This usually involves specifying the protocol (TCP or UDP), the external port, the PC’s internal IP address and the internal port selected for forwarding. This tells the router to send incoming data on the specified external port to the internal PC’s IP address and port.

    4. Save settings: After adding the port forwarding rule, be sure to save the settings. The router will start directing incoming traffic on the specified port to the PC.

    Enabling a network port on a computer


    Windows

    Windows (as with many other operating systems) includes a built-in firewall that regulates incoming and outgoing network traffic. If the firewall is blocking the port being enabled, it will be necessary to create an exception.

    Access the firewall settings by following the steps in either of the options below.

    Option 1

    1. Press Windows key + S together

    2. Enter Windows Defender Firewall

    3. Click Windows Defender Firewall

    Option 2

    1. Press Windows + R to open the Run dialog

    2. Enter Control panel and click OK

    3. Select Windows Defender Firewall

    Create an inbound rule

    In the firewall settings, create an inbound rule to allow traffic to the specific port.

    1. Click Advanced settings or Advanced firewall settings

    2. In the left pane, select Inbound Rules

    3. Click New Rule... in the right pane

      Inbound rules - new rule

    4. Select Port as the rule type and click Next

    5. Select TCP or UDP depending on the protocol used by the application

    6. Select Specific local ports and enter the applicable port number

    7. Select Allow the connection and click Next

      Windows allow connection

    8. Provide a name for the rule and a description (optional)

    9. Click Finish to create the rule

    After the inbound rule has been set up, it should take effect immediately. However, it might be necessary to restart the computer or network services.

    Test the port

    When port forwarding has been set up on the router and the PC configured, the port can be tested to see if it’s open and accessible from the outside.

    macOS

    The macOS firewall, by default, is disabled. That means the computer will accept all incoming and outgoing connections. But if the firewall has been turned on, it might be necessary to open a port to allow an inbound connection.

    macOS terminal
    1. Go to the Terminal app

    2. Enter sudo pfctl -d to stop the filter firewall

    3. Now enter sudo nano /etc/pf.conf

    4. Go to the end of all configurations

    5. Enter pass in inet proto tcp from any to any port [ add port number ] no state

      • This roughly translates to allowing incoming TCP from any machine to any other machine on that specific port number without inspection

    6. Press Ctrl + X together to exit the nano

    7. Press Y and press Enter

    The technical information in this article, including specifications and recommendations, is provided for customer convenience. The accuracy of this information is not guaranteed and is subject to change without notice. Please check the user manuals and related documentation from each product manufacturer to ensure that your setup meets the proper recommendations.


    Was this article helpful?