Determining one's own IP address.
Brian V. Smith
envbvs at epb2.lbl.gov
Sun Dec 10 11:43:10 AEST 1989
In article <4429 at ur-cc.UUCP> leadley at uhura.cc.rochester.edu (Scott Leadley) writes:
< In article <601 at bmers58.UUCP> davem at bnr-public.UUCP () writes:
< >How can one determine his own IP address without looking it up in the
< >hosts file?
<
< Assuming (a lot of things, but primarily that) you wish to do this from
< the shell command line and that you know the network interface name:
<
< % ifconfig de0
< ^^^ VAX-ism, substitute the correct name here
[ more involved stuff deleted ]
If you have only one interface, how about: arp `hostname`
--
_____________________________________
Brian V. Smith (bvsmith at lbl.gov)
Lawrence Berkeley Laboratory
I don't speak for LBL, these non-opinions are all mine.
More information about the Comp.unix.wizards
mailing list