IP camera, how to detect it on the network?

I am creating a program for communicating with an IP camera, of this model:

CVUL-I125

It has a simple web interface, and I successfully talked to it to manage it, and capture video and snapshots from it.

However, I cannot find good documentation on how to determine that this camera is on the network and what specific IP address it has.

So far, the only tool I have is its bundled software.

I guess (hoping!) That there is a better way than just iterating over all the IP addresses in the range and see if there is something similar to the camera interface there.

Does anyone know how to do this?

Is there a known API for this kind of thing?

Please note that since this is an IP camera, it does not connect directly to my computer, and therefore I cannot install anything locally, with which I can talk.

Here are some more details:

  • The camera and software that I create will be sold, which means that I can’t rely on any particular type of setup at the client site, except for DHCP
  • The camera does not have API documentation that I can find, if anyone has more google-fu than me, please enlighten me on this.
  • The camera supports DHCP, so it really connects to the network successfully, the question is how can I reliably find it later
  • I don’t know if this has a host name, the documentation says nothing, and my own DHCP server lists only the MAC address for it.
+5
source share
3 answers

According to the link you provided, this camera is capable of UPnP.

UPnP is a protocol that has several methods for detecting / searching for devices:

Your code should multicast UDP packets as search queries. Your UPnP devices will respond (depending on configuration) with UPnP Search responses, which are UDP unicast packets.

UPnP search responses contain an HTTP URL to retrieve the device’s XML description. The host in the HTTP URL is usually the IP address of the device.

See the UPnP specification .

You do not say which OS / language you are using, so just a short list of APIs and libraries:

+6
source

You want to read the DHCP options that this network camera must go through. Typically, any consumer device displays the vendor identifier string in option 43 of the DHCP packets. The interface with your DHCP server, and you can have the DHCP server send you a notification when the camera is connected to the network.

This procedure is different for each dhcp provider. Do you know that DHCP will work on the network?

Otherwise, I suggest installing a simple DHCPd. It must be easily configured to respond to the correct value of parameter 43 and speak with your application.

0
source

It looks like it is using DHCP (otherwise it will not be on your network in ALL).

I use this tool all the time:

http://www.angryip.org/w/Home

The Discovery API will listen on DHCP port 68 when the camera tries to connect to the network. I just take a Wireshark trace or use the ip-scan tool described above.

0
source

Source: https://habr.com/ru/post/928095/


All Articles