I have ip camera with static ip address preset. How can I know it ip using linux?
Now that you have changed the IP address on the IP Camera, please select IPv4 on the Configtool main screen 7. Once on this setting the change on the IP camera needs time to complete, click refresh and you camera should now appear with either the new network settings you configured, or an automatically assigned IP from your DHCP server (or router).
I connect camera direct to my notebook.
My system isLinux machine 3.5.7-gentoo #2 SMP
2 Answers
If it has a static IP address preset and not configured to use DHCP by default, it probably still has. In this case, you should connect it to a private network (just a computer and your camera for example) with the same network and netmask to configure it.
If it uses DHCP, you can ping all your network and look in your ARP cache for the MAC address of your camera. For example:
EDIT: (considering the information provided)
If you connect your camera directly to your notebook, you are able to access the camera configuration (it may be a web page, or a simple telnet menu...). In the manual of your camera, you can figure out what is your default camera's IP. You have to configure your notebook by setting a static address in the same network.
For example, if your camera's address is 192.168.0.1
, you can configure your notebook with ifconfig 192.168.0.2/24 up
. You should then be able to ping your camera and modify its configuration (static IP address, DHCP setting, etc.). You'll then be able to connect your camera in the network you want.
The camera should have its MAC address written somewhere on it: this will be twelve characters long, possibly with colons between each pair of characters.
You can then use nmap
to probe your subnet to populate your machine's ARP table, then look for a matching entry for your camera's MAC address you have.
Not the answer you're looking for? Browse other questions tagged linuxnetworkingip or ask your own question.
EDIT: I do know how to access camera when I have its IP address. The question is how to check if the specified IP address in local network belongs to an IP camera.
I work in a small local network with one router. The Range of available addresses in that network is: from 192.168.0.0
to 192.168.0.255
There is an IP camera connected to that network. The address of that camera is: 192.168.0.12
.
I queried the router for its ARP table in command line by using the arp -a
command. It is shown here (green color).
I discovered that address by AXIS IP Utility, but I would like to be able to do so programatically.
The camera model is: Axis m1011w
EDIT2: Thanks to OnoSendai I got the possible IP addresses pool from the router's ARP table:
How do I query each one of the listed IP addresses (for example 192.168.0.12
) to make sure it is an IP camera?
1 Answer
I do believe this model offers a HTTP RTSP service at port 554. You can try to open a TCP connection to it - if the device accepts the incoming connection, then it may be the camera.
If you have a proper username/password credential pair to access it, then you may access the RTSP service by using this URL:
Here's a link to their spec:
And here the access instructions:
In order to list all IP addresses on your local network, you can read the information dumped by the ARP command by using this snippet:
The function will return a List<string>
containing all local IP addresses (as present at the router's ARP table).