Thread: Unused IP Address's, how do I find?

     
  1. #1
    Admin MH's Avatar
    Join Date
    Jul 2001
    Location
    Mairyhinge
    Posts
    19,330
    DW Cash
    2,311

    Unused IP Address's, how do I find?

    Want to know what IP address's are on your network??

    here is a little command you can run from the command promt.

    it will ping all IP's in your subnet to see if there is a reply and save it to a txt file in root.

    FOR /L %i IN (1,1,254) DO ping -a -n 1 192.168.0.%i | FIND /i "Reply">>c:\ipaddresses.txt

    have fun, can be very useful!
    Last edited by little_pob; 4th September 2013 at 21:15. Reason: Added prefix

  2. #2
    VIP Member hatab's Avatar
    Join Date
    Jul 2001
    Location
    UK
    Posts
    6,265
    DW Cash
    152
    nice 1 mh thanks

  3. #3
    Inactive User
    Join Date
    Sep 2006
    Posts
    311
    DW Cash
    25
    Quote Originally Posted by Mairyhinge View Post
    Want to know what IP address's are on your network??

    here is a little command you can run from the command promt.

    it will ping all IP's in your subnet to see if there is a reply and save it to a txt file in root.

    FOR /L %i IN (1,1,254) DO ping -a -n 1 192.168.0.%i | FIND /i "Reply">>c:\ipaddresses.txt

    have fun, can be very useful!
    very usefull cmd m8 but every time i run it it creates a file on c drive but the file is empty and has 0bytes ?

    ive now tryed this cmd on 5 computers and the same happenens on all 5 computers.

    any ideas m8 ?
    ime running xp-sp2

    or could i alter the cmd to just show me the ips in the cmd window itself ?
    ive tryed altering the cmd but had no success.
    Last edited by mark370; 3rd April 2007 at 13:13.

  4. #4
    Inactive User kms's Avatar
    Join Date
    Sep 2004
    Location
    NW London
    Posts
    1,204
    DW Cash
    25
    Another useful utility that I have found is called AngryIP Scanner...Its windows based with a nice front end too.

    Code:
    Only members with over 5 posts can view this information.
    Angry IP scanner is a very fast IP scanner and port scanner. It can scan IP addresses in any range as well as any their ports. Its binary file size is very small compared to other IP or port scanners. Angry IP scanner simply pings each IP address to check if it's alive, then optionally it is resolving its hostname, determines the MAC address, scans ports, etc. The amount of gathered data about each host can be extended with the available plugins.

    It also has additional features, like NetBIOS information (computer name, workgroup name, and currently logged in Windows user), favorite IP address ranges, customizable openers, etc.

    Scanning results can be saved to CSV, TXT, HTML, XML or IP-Port list file, can be used as a command-line utility in a batch file, etc. With help of plugins, Angry IP Scanner can gather any information about scanned IPs. Anybody who can write code is able to write plugins and extend functionality of Angry IP Scanner.

    In order to increase scanning speed, it uses multithreaded approach: a separate threads is created for each scanned IP address.

    It is free and open-source software, so use it at your own risk.

  5. #5
    Inactive User
    Join Date
    Aug 2006
    Location
    midlands
    Posts
    51
    DW Cash
    25
    I use WMI Asset loger which is an excellent program to scan your network.

  6. #6
    Inactive User
    Join Date
    May 2007
    Posts
    37
    DW Cash
    25
    Also you could use a program called nmap will also tell you what ports are open

  7. #7
    Inactive User
    Join Date
    Aug 2007
    Posts
    20
    DW Cash
    25
    Should be just a case of removing the "| FIND..." off the end - then the
    standard output from the first command will show on your screen rather
    than being piped into the FIND utility


    Quote Originally Posted by mark370 View Post
    very usefull cmd m8 but every time i run it it creates a file on c drive but the file is empty and has 0bytes ?

    ive now tryed this cmd on 5 computers and the same happenens on all 5 computers.

    any ideas m8 ?
    ime running xp-sp2

    or could i alter the cmd to just show me the ips in the cmd window itself ?
    ive tryed altering the cmd but had no success.

  8. #8
    Inactive User
    Join Date
    Aug 2007
    Posts
    6
    DW Cash
    25
    Worth bearing in mind that most firewalls will block pings, if you have access to a switch on your network then take a look at the arp cache.

    Also beware! do this at work and any decent IT bod will come knocking on your door when his Intrusion Detection system tells him what you're up to! To mitigate this use nmap and make it portscan / ping sweep slowly ;-)

  9. #9
    Inactive User
    Join Date
    Sep 2007
    Posts
    82
    DW Cash
    25
    Quote Originally Posted by Mairyhinge View Post
    Want to know what IP address's are on your network??

    here is a little command you can run from the command promt.

    it will ping all IP's in your subnet to see if there is a reply and save it to a txt file in root.

    FOR /L %i IN (1,1,254) DO ping -a -n 1 192.168.0.%i | FIND /i "Reply">>c:\ipaddresses.txt

    have fun, can be very useful!
    Minor refinement:

    FOR /L %i IN (1,1,254) DO ping -a -n 1 -w 10 192.168.0.%i >>c:\ipaddresses.txt

    the "-w 10" gives better response times (sets the timeout in milliseconds) for non existent hosts, and in XP SP2 (and others) the "| FIND - i ...." filter won't work because the output from PING doesn't print "Reply"

  10. #10
    Inactive User
    Join Date
    Oct 2007
    Location
    Neath, UK
    Posts
    5
    DW Cash
    25

    cheers m8 will deff have a use for this command

Similar Threads

  1. Where to find IP address in 2.1
    By jerrell93 in forum General Cable Discussion
    Replies: 11
    Last Post: 26th March 2010, 20:37
  2. How To Find Ip Address
    By Duggy08 in forum General Cable Discussion
    Replies: 13
    Last Post: 17th April 2008, 00:18
  3. need to find an address.
    By rooney in forum General Chat
    Replies: 2
    Last Post: 10th November 2007, 19:41
  4. how to find IP address
    By trinitys_mate in forum DBOX DBOX2 Receivers
    Replies: 2
    Last Post: 18th April 2006, 13:51

User Tag List

Tags for this Thread

Bookmarks