Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much

Re: Finding the IP of a local box

by robartes (Priest)
on Sep 14, 2006 at 05:57 UTC ( #572872=note: print w/ replies, xml ) Need Help??

in reply to Finding the IP of a local box

On the command line, you would use ifconfig on the appropriate interface to get the IP address. Punching ifconfig into the CPAN search box results in Net::Ifconfig::Wrapper which provides a perl wrapper to ifconfig. I have never used this module myself, so I cannot comment on the quality and stability of it, I'm afraid.

Codewise, you would examine the hash returned by IFconfig('list','','','') to get the IP address of your internet facing network interface.


Comment on Re: Finding the IP of a local box
Download Code

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://572872]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (3)
As of 2016-02-10 01:47 GMT
Find Nodes?
    Voting Booth?

    How many photographs, souvenirs, artworks, trophies or other decorative objects are displayed in your home?

    Results (330 votes), past polls