find out ip's in your local network
Hello,
Does anyone know how may I find out all computers (I mean ip-addresses) that are in the same network as my computer? I tried the nmap command: nmap -sP 192.168.0.0/28 (it supposes to do a ping scan to the first 16 ip addresses of the network 192.168.0.0) The result was: Starting nmap 3.50 ( http://www.insecure.org/nmap/ ) at 2005-03-22 21:48 EET Host 192.168.0.3 appears to be up. Host metal.pal (192.168.0.5) appears to be up. Host SpeedTouch.mshome.net (192.168.0.14) appears to be up. Nmap run completed -- 16 IP addresses (3 hosts up) scanned in 1.115 seconds 192.168.0.3 is a cpu, running windows 192.168.0.5 is my ip address (linux suse9.1) 192.168.0.14 is the dsl router ip There are 2 more computers in the network running windows, and though I can ping them manually successfully, the nmap doesn't report them. The reason I want to find out the ip addresses is that I have a wireless network and a laptop configured to take ip address by a dhcp server (from the dsl router) and this ip is different every time. I can't understand why nmap fails to find all ip's..... do you know any alternatives? thanks.. |
You understand, specifying a /28 subnet is only going to scan 1-14 ip's
I'm not sure if you really are using a /28, but you didn't provide the IP addresses of the hosts you were trying to find. Here is a little info on subnets. http://www.more.net/technical/netserv/tcpip/subnet.html |
Re: find out ip's in your local network
Quote:
|
That's the thing I don't understand. Although these 2 computers (running windows) have ip's in the range of 1-14 (i.e. 192.168.0.6), and I can ping them successfully, nmap doesn't report them, neither nmapfe (which is really nice).
for example: ody@metal:~> ping 192.168.0.5 PING 192.168.0.5 (192.168.0.5) 56(84) bytes of data. 64 bytes from 192.168.0.5: icmp_seq=1 ttl=64 time=0.081 ms 64 bytes from 192.168.0.5: icmp_seq=2 ttl=64 time=0.073 ms ody@metal:~> ping 192.168.0.6 PING 192.168.0.6 (192.168.0.6) 56(84) bytes of data. 64 bytes from 192.168.0.6: icmp_seq=1 ttl=128 time=0.244 ms 64 bytes from 192.168.0.6: icmp_seq=2 ttl=128 time=0.248 ms 64 bytes from 192.168.0.6: icmp_seq=3 ttl=128 time=0.230 ms ody@metal:~> ping 192.168.0.14 PING 192.168.0.14 (192.168.0.14) 56(84) bytes of data. 64 bytes from 192.168.0.14: icmp_seq=1 ttl=64 time=0.490 ms 64 bytes from 192.168.0.14: icmp_seq=2 ttl=64 time=0.433 ms ody@metal:~> nmap -sP 192.168.0.0/28 Starting nmap 3.50 ( http://www.insecure.org/nmap/ ) at 2005-03-23 18:51 EET Host metal.pal (192.168.0.5) appears to be up. Host SpeedTouch.mshome.net (192.168.0.14) appears to be up. Nmap run completed -- 16 IP addresses (2 hosts up) scanned in 0.991 seconds WHERE IS 192.168.0.6 ?? Why can't nmap just do its job..! damn! :mad: |
All times are GMT -5. The time now is 07:43 PM. |