Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

perl network - programming help

by Anonymous Monk
on May 25, 2009 at 09:25 UTC ( [id://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

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 10.203.7.0/24
    Please adjust the options to feet your needs.

    Update: See Host discovery


    hth,
    PooLpi

    '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.?

    Vivek
    -- 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 (Chaplain) 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.

    Maranatha!

    ~Polyglot~

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (3)
As of 2024-03-29 05:55 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found