Difference between revisions of "Camera access from smartphone"
PauliusRug (talk | contribs) |
|||
(21 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 | + | 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. |
− | If you're looking for something else camera related, you may find the information you need in one of these related articles: | + | If you're looking for something else that is 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>[[Camera access from RMS]]</li> | |
− | |||
</ul> | </ul> | ||
Line 17: | Line 16: | ||
<ul> | <ul> | ||
− | <li>a router from the RUT series (except RUT850) | + | <li>a router from the RUT series (except RUT850);</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: | + | [[File:Hikvision_configuration_scheme_1_v3.png|1154px]] |
---- | ---- | ||
<b>Overview</b> | <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 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 1: configure the NVR and cameras== | ==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: | 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: | + | [[File:Hikvision_camera_ips_v2.png|579px]] |
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: | + | [[File:Hikvision_url_login_v4.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 47: | Line 55: | ||
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 2: 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: | ||
+ | |||
+ | [[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 2: Hik-Connect== | ==Step 2: Hik-Connect== | ||
Line 66: | Line 98: | ||
<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><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 79: | Line 111: | ||
<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> | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− |
Revision as of 13:34, 2 May 2019
Main Page > General Information > Configuration Examples > Camera > Camera access from smartphoneIntroduction
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 managed and controlled remotely via smartphone with the help of VPN 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:
Overview
You will need
- a router from the RUT series (except RUT850);
- a smartphone with the Hik-Connect app installed;
- at least one Hikvision IP camera;
- access to or ownership of a VPN network;
- a PoE switch or another type of power supply for the cameras;
- a Hikvision NVR (Network Video Recorder).
Configuration scheme
Overview
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 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.