Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot

perl network - programming help

by Anonymous Monk
on May 25, 2009 at 09:25 UTC ( #765991=perlquestion: print w/ replies, xml ) Need Help??
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

Comment on perl network - programming 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 (Pilgrim) 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.



Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://765991]
Approved by targetsmart
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (3)
As of 2015-11-29 19:07 GMT
Find Nodes?
    Voting Booth?

    What would be the most significant thing to happen if a rope (or wire) tied the Earth and the Moon together?

    Results (752 votes), past polls