Ubuntu – How to find the IP address for a device on a network

ip addressnetworking

I am trying to get an IP camera connected to my Ubuntu Linux (16.04) machine. At work I am responsible for a camera network of more than 60 cameras, however there I use some window tools to determine IP addresses etc. for Axis cameras. At home now, trying to use my Ubuntu Linux machine to see 1 camera plugged into my ethernet port.

I have tried using DHCP with no luck (probably because the camera has a fixed IP address).

Tried using "Shared to other computers" (an option in the network setup in Ubuntu GUI) and this brings up an IP address of 10.42.0.1 for my host computer, but again, using tools like nmap reveals no other connections on this network.

Tried using manual network settings, with domain ranges like 10.42.0.x as well as more conventional IP ranges like 192.168.55.x. All withou success.

Tried to install AngryIP (a useful tool in Windows) however there seems to be something wrong with the .deb files or the install as Ubuntu refuses to install it (I suspect the repository no longer exists for ipscan).

I have also tried everything mentioned here:
How can I install an IP scanner for Ubuntu 16.04 LTS?
again, with no success.

I know the camera is connected as, when I plug it in, the Tx LED flashes briefly and then stays on, and Ubuntu reports "you are now connected to the Ethernet network" or something to that effect. Also, when I run nmap, the LED flashes on the camera for a second or two, so something is there and communicating, I just can't seem to get Ubuntu to tell me the IP address!

Again, the tools I use at work are able to tell me the IP address for a camera, even when the IP address falls completely outside of the domain that it is plugged into! To be honest, I'm not sure how that works, but yes, I can identify an address like 192.168.55.7 on a domain of say 172.16.12.x.

From a hardware perspective, my machine is an up to date I7, and the camera is of reputable brand and directly plugged into my Ethernet port. No other nodes on the network.
Help, please!

IFCONFIG returns the following when a connection is established:
enter image description here

Best Answer

You can do this 3 ways.

You have to know the subnet you want to scan (192.168.0.x or 10.0.0.x or what have you).

run ifconfig to see your subnet. In my examples I will use 192.168.0.255

Method 1 nmap

IMO nmap is best, as long as you do not mind installing packages

sudo apt-get install nmap

Then search by ping (nmap can of course be more complicated and this assumes you are not firewalling ping)

nmap -sP 192.168.0.*

Method 2 : use arp

ping -b 192.168.0.255

arp -a

Method 3, and perhaps an even better option, log into your router. Most routers have a web interface that will show all connected devices.

Of course these methods will not tell you what is at which IP, although nmap will try to guess the OS if you wish.

https://nmap.org/book/man-os-detection.html

May give you a clue what is at what IP, or not.

Related Question