Is there any way to get a list of IPs connected to a network? I'm trying to build lots of networking tools so.

2 Answers 2


You can use

nmap -sP 

where 192.168.1 must be substituted with your local network address known from ifconfig.


Even though RFC 1122 requires any host on the network has to process an echo-request and issue an echo-reply in return it's well known that 'paranoid' people think of ping as an security risk and therefore decline to answer echo-request. So obviously no answer is no definite proof of any given host not being online.

However maybe you want to investigate nmap and the python libs that make use of it.

  • Hope it helps..
    – Ghanima
    Sep 8, 2014 at 15:14

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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