Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:

Hi monks, How to get the system's ip addresses connected via LAN ? I am on windows.thanks for any help

Replies are listed 'Best First'.
Re: perl network - programming help
by poolpi (Hermit) on May 25, 2009 at 10:07 UTC

    Or you can use this usefull portable tool for network inventory:

    # nmap -sP
    Please adjust the options to feet your needs.

    Update: See Host discovery


    'Ebry haffa hoe hab im tik a bush'. Jamaican proverb
Re: perl network - programming help
by targetsmart (Curate) on May 25, 2009 at 09:34 UTC
    If you know the host name, just use 'ping' utility
    again you said 'addresses' it means do you want to check the ip address of all the systems connected to your local LAN.?

    -- In accordance with the prarabdha of each, the One whose function it is to ordain makes each to act. What will not happen will never happen, whatever effort one may put forth. And what will happen will not fail to happen, however much one may seek to prevent it. This is certain. The part of wisdom therefore is to stay quiet.
      Thanks for the input, Yes .For all the systems
Re: perl network - programming help
by Polyglot (Hermit) on May 25, 2009 at 13:59 UTC
    If you know where to look, the following will produce your IP address from the command prompt:

    ipconfig /all

    It will list the IP address of every connected interface on your system, and the MAC address (physical address) for every interface and tunnel (whether or not a connection is established). For established TCP/IP connections it should also display each gateway IP, the DNS server addresses, etc.