Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

What command can I use to get a list of IP addresses used by Ubuntu systems in LAN network?

share|improve this question
Duplicate: – Eric Carvalho Dec 14 '12 at 11:12
possible duplicate of How to find all the used IP addresses on a network – hhlp Dec 14 '12 at 11:31

You can use nmap to get a list of ip's that are up:

nmap -sP

To find out if they are Ubuntu systems is harder. You can use a portscan (-sS, -sT or -sF for instance) and the -O option.

This does require you to have admin privileges, so you'd do something like

sudo nmap -sT -O

For ranges (the 0/24 part) and the options, you can check out the manpage of nmap.

share|improve this answer
only for linux and ubuntu systems. – Vaneet Dec 14 '12 at 12:44
I don't think that asking how to find servers on another OS would be ontopic? – Nanne Dec 14 '12 at 12:46

Try nmap -sP -A

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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