Camera access from smartphone: Difference between revisions

From Teltonika Networks Wiki
No edit summary
 
(24 intermediate revisions by 2 users not shown)
Line 1: Line 1:
==Introduction==
==Introduction==


This article is part of a series dedicated to use cases involving RUT routers and <b>Hikvision</b> cameras. Here you will find instructions on how to configure a surveillance system that can be managed and controlled remotely via smartphone with the help of VPN and a single RUT router.
This article is part of a series dedicated to use cases involving RUT routers and <b>Hikvision</b> cameras. Here you will find instructions on how to configure a surveillance system that can be monitored remotely via smartphone with the help of the [https://play.google.com/store/apps/details?id=com.hikvision.hikconnect&hl=en Hik-Connect] app and a single RUT router.


If you're looking for something else that is camera related, you may find the information you need in one of these related articles:
If you're looking for something else camera related, you may find the information you need in one of these related articles:


<ul>
<ul>
     <li>[[Camera access from VPN]]</li>
     <li>[[Camera access from VPN]]</li>
     <li>[[Camera access from VLC player]]</li>
     <li>[[Hikvision: remote camera access|Camera access via public IP]]</li>
    <li>[[Camera access from RMS]]</li>
<!--    <li>[[Camera access from VLC player]]</li>
<!--    <li>[[Camera access from RMS]]</li>-->
</ul>
</ul>


Line 16: Line 17:


<ul>
<ul>
     <li>a router from the RUT series (except RUT850);</li>
     <li>a router from the RUT series (except RUT850) or TRB140;</li>
     <li>a smartphone with the [https://play.google.com/store/apps/details?id=com.hikvision.hikconnect&hl=en Hik-Connect] app installed;</li>
     <li>a smartphone with the [https://play.google.com/store/apps/details?id=com.hikvision.hikconnect&hl=en Hik-Connect] app installed;</li>
     <li>at least one Hikvision IP camera;</li>
     <li>at least one Hikvision IP camera;</li>
    <li>access to or ownership of a VPN network;</li>
     <li>a PoE switch or another type of power supply for the cameras;</li>
     <li>a PoE switch or another type of power supply for the cameras;</li>
     <li>a Hikvision NVR (Network Video Recorder).</li>
     <li>a Hikvision NVR (Network Video Recorder).</li>
Line 26: Line 26:
<b>Configuration scheme</b>
<b>Configuration scheme</b>


[[File:Hikvision_configuration_scheme_1_v3.png|1154px]]
[[File:Hikvision_configuration_scheme_1_v13.png]]
----
----
<b>Overview</b>
The cameras and the NVR are connected via Ethernet cables to a PoE switch, which is connected to an RUT router, placing all devices in the same LAN. The end user then connects to the NVR via the <b>Hik-Connect</b> smartphone app.


The cameras and the NVR are connected via Ethernet cables to a PoE switch, which is connected to an RUT router, placing all devices in the same LAN. The RUT router is connected to a VPN making the network reachable to other VPN clients. The end user then connects to the NVR via the VPN IP address of RUT using the <b>Hik-Connect</b> smartphone app.
==Step 1: configure the NVR and cameras==
 
==Step 1: configure VPN==
 
First we will configure a VPN client on the router. A VPN connection will provide remote access to the router's local network and ensure data security. If your router has a [[Private_and_Public_IP_Addresses#Static_IP_address|static public IP address]], you can access it without the help of VPN. However, it is not recommended because the absence of VPN leaves the camera's vulnerable on an unsafe public network with nothing but password protection.
 
The configuration will depend on the type of VPN that is available to you. You can find various VPN configuration guides [[VPN_Configuration_Examples|here]]. For this guide we'll be using OpenVPN ([[OpenVPN_configuration_examples|click here]] for OpenVPN examples).
 
Once you set up a VPN connection or if you chose to skip this part and use the router's public IP instead, you can advance on to the next step.
 
==Step 2: configure the NVR and cameras==


The default IP address for both Hikvision cameras and NVRs is 192.168.1.64. Since we'll be configuring more than one device for this example, we'll need to set up the equipment to have different IP addresses. The setup we'll be using will have the following IPs:
The default IP address for both Hikvision cameras and NVRs is 192.168.1.64. Since we'll be configuring more than one device for this example, we'll need to set up the equipment to have different IP addresses. The setup we'll be using will have the following IPs:


[[File:Hikvision_camera_ips_v2.png|579px]]
[[File:Hikvision_configuration_scheme_1_v10.png]]


To change the IP address of a Hikvision device, power it on, connect it to your PC or an Ethernet port of your RUT router (that is connected to the PC). Type the camera's default IP address (192.168.1.64) into the URL field of your web browser and press "Enter":
To change the IP address of a Hikvision device, power it on, connect it to your PC or an Ethernet port of your RUT router (that is connected to the PC). Type the camera's default IP address (192.168.1.64) into the URL field of your web browser and press "Enter":


[[File:Hikvision_url_login_v4.png]]
[[File:Hikvision_url_login_v5.png]]


If this is the first time that you are connecting to the device, you will be required to create a user. Just follow the prompts and after you have successfully logged in go to the <b>Configuration</b> page (top left corner of the page) and navigate to the <b>Network → Basic Settings → TCP/IP</b> section. You can change the IP address from here, by editing the value of the <b>IPv4 Address</b> field:
If this is the first time that you are connecting to the device, you will be required to create a user. Just follow the prompts and after you have successfully logged in go to the <b>Configuration</b> page (top left corner of the page) and navigate to the <b>Network → Basic Settings → TCP/IP</b> section. You can change the IP address from here, by editing the value of the <b>IPv4 Address</b> field:
Line 55: Line 45:


Configure different IP addresses for all devices that you may be using and advance to the next step.
Configure different IP addresses for all devices that you may be using and advance to the next step.
<!--
==Step 3: configure Port Forwarding==


<b>Port Forwarding</b> is a way of redirecting an incoming connection to another IP address, port or the combination of both:
==Step 2: Hik-Connect==
 
[[File:Port_forwarding_scheme_v4.png]]
 
This means you can access multiple LAN devices via a single IP address, but using different ports. Since we have access to the router via its VPN IP (10.0.0.1), we can configure redirects from this IP to the NVR and the IP cameras.
----
To configure Port Forwarding on a RUT device, go to <b>Network → Firewall → Port Forwarding</b> and scroll to the bottom of the page. Locate the <b>New Port Forward Rule</b> section and create a rule to reach the NVR's web interface:
 
[[File:Networking_device_configuration_remote_camera_management_5_v3.png]]
 
By default, this rule will redirect connections from hosts in WAN connecting to port 81 to the NVR's IP and port 80 (default http port). As discussed [[Remote_camera_access_via_VPN#Step_1:_configure_VPN|earlier]], we want to connect via VPN, not WAN; therefore, you will have to edit the rule accordingly. Locate the newly created rule in the list and click the "Edit" button next to it:
 
[[File:Networking_device_configuration_remote_camera_management_6_v3.png]]
 
Change the Source zone from "wan" to the type of VPN that you are using and save the changes:
 
[[File:Networking_device_configuration_remote_camera_management_7_v1.png]]
----
You can also create analogous rules for every other camera. Just remember to use different ports and specify actual camera IPs:
 
[[File:Networking_device_configuration_remote_camera_management_8_v3.png]]
-->
==Step 3: Hik-Connect==


[https://play.google.com/store/apps/details?id=com.hikvision.hikconnect&hl=en Install the Hik-Connect] app on your phone. Open the app and follow the instructions provided below:
[https://play.google.com/store/apps/details?id=com.hikvision.hikconnect&hl=en Install the Hik-Connect] app on your phone. Open the app and follow the instructions provided below:
Line 90: Line 56:
     <li><b>2</b> - scan the QR code on your NVR (it is located on the bottom of the device);</li>
     <li><b>2</b> - scan the QR code on your NVR (it is located on the bottom of the device);</li>
     <li><b>3</b> - tap the "Connect to a Network" button;</li>
     <li><b>3</b> - tap the "Connect to a Network" button;</li>
     <li><b>4</b> - make sure the NVR is connected to your router and tap "Connected and Next".</li>
     <li><b>4</b> - make sure that the NVR is connected to your router. Tap "Connected and Next".</li>
</ul>
</ul>
----
----
Line 98: Line 64:
     <li><b>5</b> - wait for the connection to finish;</li>
     <li><b>5</b> - wait for the connection to finish;</li>
     <li><b>6</b> - read the terms of service and tap "Next";</li>
     <li><b>6</b> - read the terms of service and tap "Next";</li>
     <li><b>7</b> - enter the NVR's password (the one configured in [[Camera_access_from_smartphone#Step_2:_configure_the_NVR_and_cameras|step 2]];</li>
     <li><b>7</b> - enter the NVR's password (the one configured in [[Camera_access_from_smartphone#Step_2:_configure_the_NVR_and_cameras|step 2]]);</li>
     <li><b>8</b> - enter a verification code which will be used for encryption with the Hik-Connect service. Then tap the "Enable Hik-Connect Service" button.</li>
     <li><b>8</b> - enter a verification code which will be used for encryption with the Hik-Connect service. Then tap the "Enable Hik-Connect Service" button.</li>
</ul>
</ul>
Line 111: Line 77:
     <li><b>13</b> - if you can see the live view, congratulations - your setup works! To view more than one camera at a time, select a number other than 1 from the list below the video streams and click the plus symbol to select which cameras should be viewed.</li>
     <li><b>13</b> - if you can see the live view, congratulations - your setup works! To view more than one camera at a time, select a number other than 1 from the list below the video streams and click the plus symbol to select which cameras should be viewed.</li>
</ul>
</ul>
==Devices used==
List of devices used for testing this particular setup:
<ul>
    <li><b>Cameras</b>
        <ul>
            <li>Hikvision network camera [http://www.bkgrupe.lt/lt/catalog/view/?id=3052 DS-2CD2145FWD-I]</li>
            <li>Hikvision network camera [http://www.bkgrupe.lt/lt/catalog/view/?id=2961 DS-2CD2045FWD-I]</li>
            <li>Hikvision network camera [http://www.bkgrupe.lt/lt/catalog/view/?id=2887 DS-2CD2345FWD-I]</li>
            <li>Hikvision network camera [http://www.bkgrupe.lt/lt/catalog/view/?id=2890 DS-2CD2T45FWD-I8]</li>
        </ul>
    </li>
    <li><b>NVR</b>
        <ul>
            <li>Hikvision network video recorder [http://www.bkgrupe.lt/lt/catalog/view/?id=2290 DS-7604NI-K1(B)]</li>
        </ul>
    </li>
    <li><b>Switch</b>
        <ul>
            <li>Utepo 4 Ports PoE+ switch [http://www.bkgrupe.lt/lt/catalog/view/?id=2038 UTP3-SW04-TP60]</li>
        </ul>
    </li>
    <li><b>Router</b>
        <ul>
            <li>Any type of RUT that has Ethernet ports or TRB140: [https://teltonika-networks.com/product/rut200/ RUT200], [https://teltonika-networks.com/product/rut241/ RUT241], [https://teltonika-networks.com/product/rut901/ RUT901], [https://teltonika-networks.com/product/rut956/ RUT956], [https://teltonika-networks.com/product/rut955/ RUT955], [https://teltonika-networks.com/product/rutx08/ RUTX08], [https://teltonika-networks.com/product/rutx09/ RUTX09], [https://teltonika-networks.com/product/trb140/ TRB140]</li>
        </ul>
    </li>
</ul>
<b>NOTE</b>: the instructions should apply to other Hikvision equipment as well.
[[Category:Camera]]

Latest revision as of 09:34, 22 August 2024

Main Page > General Information > Configuration Examples > Camera > Camera access from smartphone

Introduction

This article is part of a series dedicated to use cases involving RUT routers and Hikvision cameras. Here you will find instructions on how to configure a surveillance system that can be monitored remotely via smartphone with the help of the Hik-Connect app and a single RUT router.

If you're looking for something else camera related, you may find the information you need in one of these related articles:

Overview

You will need

  • a router from the RUT series (except RUT850) or TRB140;
  • a smartphone with the Hik-Connect app installed;
  • at least one Hikvision IP camera;
  • a PoE switch or another type of power supply for the cameras;
  • a Hikvision NVR (Network Video Recorder).

Configuration scheme


The cameras and the NVR are connected via Ethernet cables to a PoE switch, which is connected to an RUT router, placing all devices in the same LAN. The end user then connects to the NVR via the Hik-Connect smartphone app.

Step 1: configure the NVR and cameras

The default IP address for both Hikvision cameras and NVRs is 192.168.1.64. Since we'll be configuring more than one device for this example, we'll need to set up the equipment to have different IP addresses. The setup we'll be using will have the following IPs:

To change the IP address of a Hikvision device, power it on, connect it to your PC or an Ethernet port of your RUT router (that is connected to the PC). Type the camera's default IP address (192.168.1.64) into the URL field of your web browser and press "Enter":

If this is the first time that you are connecting to the device, you will be required to create a user. Just follow the prompts and after you have successfully logged in go to the Configuration page (top left corner of the page) and navigate to the Network → Basic Settings → TCP/IP section. You can change the IP address from here, by editing the value of the IPv4 Address field:

Configure different IP addresses for all devices that you may be using and advance to the next step.

Step 2: Hik-Connect

Install the Hik-Connect app on your phone. Open the app and follow the instructions provided below:

  • 1 - tap the "Add Device" button;
  • 2 - scan the QR code on your NVR (it is located on the bottom of the device);
  • 3 - tap the "Connect to a Network" button;
  • 4 - make sure that the NVR is connected to your router. Tap "Connected and Next".

  • 5 - wait for the connection to finish;
  • 6 - read the terms of service and tap "Next";
  • 7 - enter the NVR's password (the one configured in step 2);
  • 8 - enter a verification code which will be used for encryption with the Hik-Connect service. Then tap the "Enable Hik-Connect Service" button.

  • 9 - wait for the app to link the device to your account;
  • 10 - tap "Next";
  • 11 - enter a custom name for the device; tap "Save";
  • 12 - back in the first window of the app, under the name of your device, you should see multiple thumbnails for each connected camera. Tap on one of them to see the live view;
  • 13 - if you can see the live view, congratulations - your setup works! To view more than one camera at a time, select a number other than 1 from the list below the video streams and click the plus symbol to select which cameras should be viewed.

Devices used

List of devices used for testing this particular setup:

NOTE: the instructions should apply to other Hikvision equipment as well.