Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re: Getting net addy on localhost?

by blakem (Monsignor)
on Nov 27, 2001 at 13:16 UTC ( #127764=note: print w/replies, xml ) Need Help??


in reply to Getting net addy on localhost?

You've gotten lots of perl solutions, so let me offer a non-perl one. If you have GNU hostname on your machine1, use the -i option to get the machines IP address.
$ hostname -i 63.150.14.148
1 any flavor of linux or other machine with the standard set of GNU tools installed.

-Blake

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (3)
As of 2021-10-16 12:54 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My first memorable Perl project was:







    Results (69 votes). Check out past polls.

    Notices?