Results 1 to 2 of 2

Thread: Scan clients connected to the LAN

  1. #1
    Join Date
    Aug 2010
    Beans
    3

    Scan clients connected to the LAN

    Hi guys,

    I was wondering if there's a way to check which clients are connected to my LAN? I'd want to know their IP and hostname.

    Any suggestions?

    Thanks in advance.

    Regards,
    Alessandro Desantis

  2. #2
    Join Date
    Nov 2008
    Location
    Metro Boston
    Beans
    9,490
    Distro
    Kubuntu 14.04 Trusty Tahr

    Re: Scan clients connected to the LAN

    Code:
    sudo apt-get install nmap
    nmap -sP 192.168.1.0/24
    That will ping all the addresses between 192.168.1.0 and 192.168.1.255 and give you a list of all the hosts it finds. Whether the hostnames are returned depends on whether you have reverse-DNS resolution correctly configured on your network.

    nmap is an incredibly powerful tool with a lot of scanning options. Hell, even Trinity uses it in the second Matrix film.

    If there are Windows clients on the network, you can use the "nmblookup" utility that comes with Samba to get hostnames. "nmblookup -A 10.10.10.10" will return that host's "Netbios" name, the one that appears in a network search using Windows.
    Last edited by SeijiSensei; August 29th, 2011 at 02:12 PM.

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •