Path: utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!ucsd!helios.ee.lbl.gov!epb2.lbl.gov!envbvs From: envbvs@epb2.lbl.gov (Brian V. Smith) Newsgroups: comp.unix.wizards Subject: Re: Determining one's own IP address. Summary: arp it Message-ID: <4421@helios.ee.lbl.gov> Date: 10 Dec 89 00:43:10 GMT References: <601@bmers58.UUCP> <4429@ur-cc.UUCP> Sender: usenet@helios.ee.lbl.gov Reply-To: envbvs@epb2.lbl.gov (Brian V. Smith) Organization: Lawrence Berkeley Laboratory, Berkeley Lines: 19 X-Local-Date: 9 Dec 89 16:43:10 PST In article <4429@ur-cc.UUCP> leadley@uhura.cc.rochester.edu (Scott Leadley) writes: < In article <601@bmers58.UUCP> davem@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@lbl.gov) Lawrence Berkeley Laboratory I don't speak for LBL, these non-opinions are all mine.