This page has been robot translated, sorry for typos if any. Original content here.

How to connect a webcam



  • Webcams connect to the Internet
  • How to connect a webcam over a local network
  • How to access your webcam via the Internet
  • How to build a security system using webcams
  • Organization of live broadcast from ip camera on site


  • Webcams connect to the Internet



    1. Through the port on the network 10/100 MbitEthernet , the most popular method of data transmission. There are two standards for 10 Mbit Ethernet networks: 10Base2 (using coaxial cable) and 10BaseT (using twisted pair). 10Base2 is rarely used due to the sensitivity of coaxial cable to external interference. Standard 100BaseTX uses twisted pair and provides data rates of 100 Mbps. 1000 Mbit Ethrnet, Gigabit Ethernet The standard used here is 1000BaseTX - this is an enhanced version of 100BaseTX. This standard is mainly used for the construction of local area networks.
    2. With the help of a standard modem via the serial port. This is a cheap and fairly common way to connect a webcam to the global network. The main disadvantage of this connection method is the low data transfer rate (the maximum data download speed is 56 kbps, the maximum swap speed is 33.6 kbps.
    3. Through ISDN modems. The ISDN (Integrated Services Digital Network) standard is used to transmit digitized graphics, audio and video information, and other digital data over private or public digital telephone networks. The ISDN standard provides data transmission at speeds up to 128 kbps on two channels. xDSL modemsDSL (Digital Subscriber Line) is a technology that provides high bandwidth over simple copper telephone wires. The data transfer rate may vary depending on the company providing the service. On average, it is 1 Mbit / s for downloading data and 250 kbit / s for paging.
    4. A cable modem is a modem that provides access to the Internet via cable television networks. Cable modems use asymmetric technology that is best suited for user access to the Internet. At the same time, the maximum possible data reception rate by such a modem can reach about 40 Mbit / s (although it usually does not exceed 1 Mbit / s), and the data transfer rate is about 10 Mbit / s.
    5. Cellular modems With a cellular modem, you can connect a webcam to the Internet using cellular lines. The data transfer rate is usually from 5 to 20 kbps.

    After a physical connection to the network, an IP address is assigned to the webcam. Most often, the default IP address of the webcam is not; it is installed either by using the appropriate function of a standard web browser, or by the DOS command, which uses the serial number of the webcam to identify it. In addition, manufacturers are developing special programs for web-cameras, greatly simplifying the procedure for assigning an IP-address to a web-camera. Thanks to the embedded software for the web server, FTP server, FTP client, e-mail client, etc., the webcam connects directly to the LAN / WAN / Internet network and works as an independent network device in it. This distinguishes webcams from ordinary computer cameras, which require a mandatory connection to a personal computer via USB or LPT port. In addition, webcams can support working with user scripts and JAVA applets. To install a webcam on the street or in the room, many manufacturers provide in the design of the camera body a special fastener designed to be installed on walls, ceilings, brackets and turning devices. Some webcams have built-in pan / tilt head for mounting on a horizontal or vertical surface.







    How to connect a webcam over a local network

    You will need the following components: a computer, a switch, a network camera, and an Ethernet LAN. There are also options for wireless connectivity.



    An example of the organization of video surveillance in the office behind the entrance door

    Step 1: Identify your needs

    - Do you want to use the camera indoors only? Or for outdoor use?

    - Do you want a camera with a fixed viewing angle or variable that allows you to remotely pan, tilt or zoom?

    - Do you need additional options such as motion detection, alarm notification, camera power over Ethernet, audio?

    - Do you want to just watch or also record what is happening?

    - Do you need to protect the camera from external influence?

    - Determine how many cameras you need for your needs.

    Step 2: System Requirements

    If there is not yet a local area network in your building that allows you to simply plug the network camera into the network output, then you will need the following equipment:

    - a switch that will serve as a central connection point between your network camera and your local computer

    - at least two Ethernet cables: one to connect your network camera with a switch and the other to connect your computer to a local switch.

    Step 3: Installation.

    - Connect all devices with each other through a switch

    Step 4: Assign the IP address for the network camera.

    - You must assign an IP address to your network camera so that you can access it through a Web browser on your local computer. You can choose between automatic and static IP address. A static IP address is recommended because you do not have to look for the IP address of the camera every time.

    To set the IP address of the network camera. You can use the software that is on the CD that comes with the product, or can be downloaded from the manufacturer’s website or using the definition protocol method addressed to the ping utility. In any case, all the information you will find in the installation manual of the network camera.

    Step 5: Complete the installation of the network camera.

    Once the IP address has been assigned, you can open a Web browser on your local computer and enter the IP address of the network camera in the address field. For new visitors with the Internet Explorer web browser, the browser will ask you if you want to download a program to work with the camera. This program is mandatory in order to watch live video from a video server or video camera. It also provides control of MPEG-2, MPEG-4 formats, audio streams, motion detection and pan / tilt / zoom in a browser window. (Other Web browsers may have native support for video streams and do not require installation of additional components.)



    Click the "Yes" button to install the program.





    How to access your webcam via the Internet



    Example: After you already get the image from the webcam on your computer, you decide that it would be nice to be able to access the camera wherever there is Internet. For example, as a store owner, you want to control actions in a store from your home, instead of having to be at your workplace every minute

    Step 1: System Requirements

    Scenario A)

    If your building (where the camera should be located) is already connected via Ethernet to an Internet Service Provider (Internet Service Provider), simply set up an account, turn on the network camera in a switch via a network output, and you should receive a dynamically assigned public IP for the network camera -address. Follow the installation commands for the network camera. A special software or utility to the webcam will be useful in identifying the IP address.

    Since the assigned IP address can be changed by your Internet service provider (due to the limited supply of IP addresses shared among its clients), you can find out how you can assign a specific IP address to the cameras in Step 4 below.

    Scenario B)

    If your building is not equipped with Ethernet access, then in most cases you may need the following devices:

    - a broadband modem for connecting an asymmetric digital subscriber line (usually supplied by your Internet service provider) or cable television

    - a broadband router, which may also be called an Internet Gateway (Broadband router allows LAN users to share a single Internet connection. It also serves as an interface between the Internet, the Provider and the Local Network.)



    - a switch that allows different devices from the network to communicate directly with each other and allows devices from the local network to have separate IP addresses)

    NOTE: Most broadband routers have a built-in switch function, so separate hardware is not required.

    - network camera

    - local computer

    - computer for remote monitoring

    Step 2: Assign an IP Address to Your Camera

    - Since the broadband router typically assigns automatic, local IP addresses for devices from a local network, such IP addresses have properties to change. A static (permanent) IP address is recommended for a network camera. To assign a static IP address, find out the range of IP addresses of the router, which, for example, can be from 192.168.0.2 to 192.168.0.35. If you want to use an out-of-range IP address, such as 192.168.0.100, as a static IP address for a camera, it is likely that you will not risk that your device will conflict with other devices that receive automatic addresses.

    - Setting the IP address for your camera can be done in three different ways, as indicated in the camera manual. Once the IP address is assigned, set the subnet and gateway (this information can be obtained from the router), and configure the camera settings: password, registered users to ensure that access to the camera is restricted.

    Step 3: Port Forwarding

    - The broadband router, as mentioned earlier, provides the interface between the Internet, the Provider and the Local Network. The router receives the external IP address from the Internet service provider and delivers internal (local) IP addresses for devices on the local network.

    To access a network camera that resides on a local network, you must identify the external IP address of your router (see your router's manual), and configure your router so that the external IP address is directed to a static, local IP address of the network camera. . This process is called the opening of the port; that is, when you print the external IP address of the router from any networked computer, the Internet determines the location of your router, in turn forwards your request to the local IP address that is assigned to the network camera.



    - Launch the web browser and access the embedded web pages of the router via the Login to the router configuration pages.

    - Find the menu item "port forwarding" (or similar), with a table approximately as shown below:

    Service name Port start End port Server IP Address
    FTP 21 21 Not configured
    HTTP (Network) 80 80 Not configured
    Not configured

    Since the camera sends its video over HTTP, you must configure the HTTP service in this way:

    Service name Port start End port Server IP Address
    FTP 21 21 Not configured
    HTTP (Network) 80 80 192.168.0.100
    Unofficial port 80xx 80xx 192.168.0.10x

    - Save the configuration in the router and exit the configuration pages. Configuration complete. Any requests reaching the external IP address of the router on port 80 will now be sent to the IP camera address: 192.168.0.100.

    - If you want to make more than one network camera available via the Internet, then you must use additional (unofficial) ports of the router, such as 80xx and connect them to the network address of the IP camera.

    Step 4: What can you do if your ISP often changes Dfi's external IP address

    - Create an account in the DNS service that services and register domain names (for example, www.nic.ru , etc.) and link it to an external IP address. The domain name, such as www.web-kamera.ru , is understandable to the user, it is easy to remember, and you can assign each domain its own network device, i.e. his ip address. Whenever the IP address of the router is changed, it will be automatically registered by DNS to update your IP address so that you can contact your network camera at the same address.

    - Most broadband routers have native DNS support, such as www.dyndns.org .

    - Another alternative: you can buy or rent a static external IP address from your ISP.





    How to build a security system using webcams

    An effective way to extend security systems in a building, factory, hospital, or campus is to use an existing infrastructure:

      - During the day, the guards watch the monitor in the control room
      - At night and on weekends, surveillance can be performed remotely at a central monitoring station serving several companies
      - Built-in motion detection can trigger an alarm and start recording an alarm event.
      - In the event of an alarm, the head of security can look at the images on the computer closest to him or remotely via an Internet connection.


    Images can be injured in a computer in an enterprise or on the server of an Internet service provider (provider). Storing images in remote locations eliminates the risk that an attacker will lend evidence of crime.

    Cameras can also send images automatically to the host computer, or the host computer itself can search for images from the cameras. If the host computer is running Windows, you can use special software designed for network cameras. The program can display a picture in real time or work with archives. When the storage period of video images becomes, for example, two weeks, the program automatically erases them.