0

I have got an IP camera which, according to the manual, is supposed to have static IP address 192.168.1.110. To connect to it (and change the network settings) I configured my laptop to have static IP 192.168.1.1/255.255.255.0 and connected it directly to the camera (without any routers/switches in between).

The laptop indicated that wired network was connected. But 192.168.1.110 was not pingable. So I did:

nmap -sn 192.168.1.0/24

but that came back with the laptop's IP only.

To rule out the possibility that the camera could have 192.168.1.1 as well, I changed the laptop's address to 192.168.1.2 and tried again. Same result — the laptop's IP only.

Presumably, the camera has been set up for some other private network — could be 192.168.0.0/16, 172.16.0.0/12 or whatever. Apart from questioning the vendor/supplier, is there a neat/quick way to find out which IP/network the camera has been set up for?

The vendor actually recommends to use an app called AjDevTools (for Windows) but I am not convinced to bother turning my virtual Windows on as I don't know how that app could possibly help if the above steps with nmap did not.

15
  • Have you tried to connect, regardless of pingable? The camera may not respond to ping requests. If you cannot connect, have you checked if there is a way to "factory default" it? Have you contacted the mfg's tech support?
    – C. M.
    Jul 29 at 8:55
  • @C.M. Yeah I tried telnet <IP> 80/443, no response. The tech support simply suggests AjDevTools for Windows.
    – Greendrake
    Jul 29 at 8:59
  • Also, how did you connect directly to it? Not all network interfaces are meant to--or capable of--directly connecting like that. You may need at least a hub in between.
    – C. M.
    Jul 29 at 8:59
  • @C.M. Just simple Ethernet cable. The laptop OS showed it was 100 Mbps, so the link was definitely on.
    – Greendrake
    Jul 29 at 9:01
  • I would not trust that enough to draw that conclusion. Put i on a hub, wih at least one other device ou know works, and see if you can show both the laptop and the other known-working device. Part of problem solving and diagnostics is to avoid making assumptions--rule out and eliminate with certainty.
    – C. M.
    Jul 29 at 9:09
0

You need to set the DCHP server to give the IP you want to the mac address of the camera. Usually you can set it via your router.

You can read more here as well: https://linuxapt.com/blog/36-how-to-configure-dhcp-on-linux

2
  • 1
    That only works if the camera requests an address via DHCP (most do, but I would think that the camera manual would clearly state that it does, and not state a specific static IP address...)
    – C. M.
    Jul 29 at 8:44
  • The MAC address is unknown (not stated anywhere on the camera or on the packaging). Is there a way to find it out via the connected network cable?
    – Greendrake
    Jul 29 at 8:46
0

Wireshark rulez.

As suggested by C. M. in the comments to the question:

use Wireshark to sniff any possible packets from the camera and extract the IP/MAC from that

So, I started sniffing the network interface and plugged the cable in. Among a bunch of weird stuff there were a few incoming packets from some 192.168.254.24. Upon changing the laptop's static network configuration to 192.168.254.1, I was able to connect to the camera at 192.168.254.24. Bingo!

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.