QNAP School > Tutorials > NVR Installation Guide
[Guide] Scenario 4: Configure NVR, IP cameras and the PC in different routers and access NVR from remote PC

Scenario 4

  1. The VioStor, IP cameras, and the PC are in LAN A.
  2. Some IP cameras are installed in LAN B behind a different router in a remote location.
  3. Allow the users to connect the NVR from remote PC over the Internet.

Please follow the steps below to install the NVR.

Streaming from the network cameras:

  1. Plan the IP address and port of the NVR, the camera, and the PC.
    LAN Device    IP Address/ Port  Mapped Port (HTTP) on the Router
    A Public IP of the router 219.87.144.205  
    VioStor 192.168.1.100:80 219.87.144.205:8000
    Camera 1 192.168.1.101:80 219.87.144.205:8001
    Camera 2 192.168.1.102:80 219.87.144.205:8002
    Camera 3 192.168.1.103:80 219.87.144.205:8003
    Camera 4 192.168.1.104:80 219.87.144.205:8004
    PC 192.168.1.200  
    B Router's Public IP 205.234.170.160  
    Router's LAN IP 172.17.1.1  
    Camera 5 172.17.1.11 205.234.170.160:8005
    Camera 6 172.17.1.12 205.234.170.160:8006
    C Remote PC 89.97.5.123  
  2. Install the IP camera. Please refer to the user guide of the IP camera for the network configuration.
  3. Configure the router/ virtual server/ firewall
    In this application, you have to configure the port mapping or virtual server of the routers in LAN A and LAN B; and forward the ports to the corresponding LAN IP by the NAT router so that the NVR can save the recording data from the remote IP camera and the remote PC can access the monitoring page over the Internet.
    Note:
    1. Some IP cameras delivers MPEG4 image via RTSP or RTP ports. If the IP camera is installed outside the router, you have to configure the RTSP and RTP ports on the router and the NVR so that the NVR can save the recording data from the IP cameras, e.g. Axis, D-link, GANZ, LevelOne or Vivotek cameras that support MPEG4 streaming.
    2. In this sample, you must configure the RTP port setting on the router of LAN A and the RTSP port setting on the router of LAN B. Please refer to FAQ.
    3. RTP (Real-time Transport Protocol): The protocol for delivering video or audio data.
    4. RTSP (Real-Time Streaming Protocol): The protocol for controlling video or audio streaming media.
    Configure the port mapping or virtual server on the router:
    1. (a-1) Configure the port mapping on the router in LAN A
      HTTP port:
      From Forward to
      219.87.144.205:8000 192.168.1.100:80
      219.87.144.205:8001 192.168.1.101:80
      219.87.144.205:8002 192.168.1.102:80
      219.87.144.205:8003 192.168.1.103:80
      219.87.144.205:8004 192.168.1.104:80
      RTP port: (Configure the port for NVR to receive remote video data from the IP camera)
      From Forward to
      219.87.144.205:6100 192.168.1.100:6100
      219.87.144.205:6101 192.168.1.100:6101
      219.87.144.205:6102 192.168.1.100:6102
      219.87.144.205:6103 192.168.1.100:6103
      :
      :
      :
      :
      :
      :
      219.87.144.205:6259 192.168.1.100:6259
      Note: The default RTP port range of the NVR (VioStor) is 6100~6259. Please refer toFAQ.
    2. (a-2) Sample of the router's port mapping in LAN A:

    3. (b-1) Configure the port mapping on the router in LAN B
      HTTP port:
      From Forward to
      205.234.170.160:8005 172.17.1.11:80
      205.234.170.160:8006 172.17.1.12:80
      RTSP port: Configure the protocol for controlling video or audio streaming media.
      From Forward to
      205.234.170.160:5001 172.17.1.11:554
      205.234.170.160:5002 172.17.1.12:554
      Note:
      Please check the RTSP (Real-Time Streaming Protocol) port of the IP camera before configuring the port mapping on the router.
      Please refer to the user guide of the IP camera for its RTSP port settings.
    4. (b-2) Sample of the router's port mapping in LAN B: 

  4. Install and configure the VS-NVR
    Enter the IP address of the camera in the "IP address" field of the "Camera Settings" page of the VioStor. Then enter the Public IP and the port number of the camera configured on the router in "WAN IP" and "Port" fields on the "Camera Settings" page of the VioStor.
    1. Enter the settings of the IP cameras in LAN A.
      Camera 1 "IP Address": 192.168.1.101 port 80
      "WAN IP Address": 219.87.144.205 port 8001
      Camera 2 "IP Address": 192.168.1.102 port 80
      "WAN IP Address": 219.87.144.205 port 8002
      Camera 3 "IP Address": 192.168.1.103 port 80
      "WAN IP Address": 219.87.144.205 port 8003
      Camera 4 "IP Address": 192.168.1.104 port 80
      "WAN IP Address": 219.87.144.205 port 8004

      Note:
      1. The "IP address" is for the VioStor to acquire the streaming from the VioStor directly and for browsing by LAN users.
      2. The "WAN IP Address" is for remote access to the monitoring page of the VioStor over the Internet. If your IP camera is installed behind the NAT router, enter the public IP address (or URL) and configure the port forwarding correctly.
    2. Enter the settings of the IP cameras in LAN B.
      Camera 5 "IP Address": 205.234.170.160 port 8005/5001
      Camera 6 "IP Address": 205.234.170.160 port 8006/5002

      Note:The "Port" field refers to the HTTP and RTSP port. The default number of HTTP port: 80. To specify the RTSP port of the IP camera, add a slash (/) and RTSP port number after the HTTP port number.
  • The port 21 must be forwarded on the router in the following two situations:
    1. When you use the alarm function of the remote IP camera (the alarm between the NVR and the camera is delivered by FTP).
    2. When you need to login the VioStor by FTP (port 21).
      From Forward to
      219.87.144.205:21 192.168.1.100:21
  • After changing the settings, enter the address in the browser to access the VioStor over the Internet: http:// 219.87.144.205:8000/
  • If you have configured port 80 to VioStor, enter the address to access the VioStor (the default port of HTTP is 80): http:// 219.87.144.205/
  • To use DDNS if this network environment, enter the DDNS settings on the router, but not on the VioStor.

Streaming from the server:

  1. Plan the IP address and port of the NVR, the camera, and the PC.
    LAN Device    IP Address/ Port  Mapped Port (HTTP) on the Router
    A Public IP of the router 219.87.144.205  
    VioStor 192.168.1.100:80 219.87.144.205:8000
    Camera 1 192.168.1.101  
    Camera 2 192.168.1.102  
    Camera 3 192.168.1.103  
    Camera 4 192.168.1.104  
    PC 192.168.1.200  
    B Router's Public IP 205.234.170.160  
    Router's LAN IP 172.17.1.1  
    Camera 5 172.17.1.11 205.234.170.160:8005
    Camera 6 172.17.1.12 205.234.170.160:8006
    C Remote PC 89.97.5.123  
  2. Install the IP camera. Please refer to the user guide of the IP camera for the network configuration.
  3. Configure the router/ virtual server/ firewall
    In this application, you have to configure the port mapping or virtual server of the routers in LAN A and LAN B; and forward the ports to the corresponding LAN IP by the NAT router so that the NVR can save the recording data from the remote IP camera and the remote PC can access the monitoring page over the Internet.
    Note:
    1. Some IP cameras delivers MPEG4 image via RTSP or RTP ports. If the IP camera is installed outside the router, you have to configure the RTSP and RTP ports on the router and the NVR so that the NVR can save the recording data from the IP cameras, e.g. Axis, D-Link, GANZ, LevelOne, or Vivotek cameras that support MPEG4 streaming.
    2. In this sample, you must configure the RTSP port setting on the router of LAN B. Please refer to FAQ. 515.
    3. RTSP (Real-Time Streaming Protocol): The protocol for controlling video or audio streaming media.
    Configure the port mapping or virtual server on the router:
    1. (a-1) Configure the port mapping on the router in LAN A
      HTTP port:
      From Forward to
      219.87.144.205:8000 192.168.1.100:80
    2. (a-2) Sample of the router's port mapping in LAN A:

    3. (b-1) Configure the port mapping on the router in LAN B
      HTTP port:
      From Forward to
      205.234.170.160:8005 172.17.1.11:80
      205.234.170.160:8006 172.17.1.12:80
    4. RTSP port: Configure the protocol for controlling video or audio streaming media.
      From Forward to
      205.234.170.160:5001 172.17.1.11:554
      205.234.170.160:5002 172.17.1.12:554
    5. Note:
      Please check the RTSP (Real-Time Streaming Protocol) port of the IP camera before configuring the port mapping on the router.
      Please refer to the user guide of the IP camera for its RTSP port settings.
    6. (b-1) Configure the port mapping on the router in LAN B
      HTTP port:
      From Forward to
      205.234.170.160:8005 172.17.1.11:80
      205.234.170.160:8006 172.17.1.12:80
    7. RTSP port: Configure the protocol for controlling video or audio streaming media.
      From Forward to
      205.234.170.160:5001 172.17.1.11:554
      205.234.170.160:5002 172.17.1.12:554
    8. Note:
      Please check the RTSP (Real-Time Streaming Protocol) port of the IP camera before configuring the port mapping on the router.
      Please refer to the user guide of the IP camera for its RTSP port settings.
    9. (b-2) Sample of the router's port mapping in LAN B:

  4. Install and configure the NVR (VioStor)
    Enter the IP address of the camera in the "IP address" field of the "Camera Settings" page of the VioStor.
     
    Note:
    1. The "IP address" is for the VioStor to acquire the streaming from the VioStor directly and for browsing by LAN users.
    2. The "WAN IP Address" is for remote access to the monitoring page of the VioStor over the Internet. If your IP camera is installed behind the NAT router, enter the public IP address (or URL) and configure the port forwarding correctly.
    i. Enter the settings of the IP cameras in LAN B.
     
    Note:The "Port" field refers to the HTTP and RTSP port. The default number of HTTP port: 80. To specify the RTSP port of the IP camera, add a slash (/) and RTSP port number after the HTTP port number.

    The port 21 must be forwarded on the router in the following two situations: 
    1. When you use the alarm function of the remote IP camera (the alarm between the NVR and the camera is delivered by FTP).
    2. When you need to login the VioStor by FTP (port 21).
      From Forward to
      219.87.144.205:21 192.168.1.100:21
    After changing the settings, enter the address in the browser to access the VioStor over the Internet: http:// 219.87.144.205:8000/

    If you have configured port 80 to VioStor, enter the address to access the VioStor (the default port of HTTP is 80): http:// 219.87.144.205/

    To use DDNS if this network environment, enter the DDNS settings on the router, but not on the VioStor.
2015/07/22
Back