Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!cs.utexas.edu!swrinde!zaphod.mps.ohio-state.edu!samsung!munnari.oz.au!murtoa.cs.mu.oz.au!ditmela!yarra!melba.bby.oz.au!leo!gnb From: gnb@bby.oz.au (Gregory N. Bond) Newsgroups: comp.unix.wizards Subject: Re: Determining one's own IP address. Message-ID: Date: 13 Dec 89 06:07:34 GMT References: <601@bmers58.UUCP> <4429@ur-cc.UUCP> <604@bmers58.UUCP> <5215@tekcrl.LABS.TEK.COM> Sender: news@melba.bby.oz.au Organization: Burdett, Buckeridge and Young Ltd. Lines: 15 In-Reply-To: terryl@tekcrl.LABS.TEK.COM's message of 12 Dec 89 18:44:55 GMT In article <5215@tekcrl.LABS.TEK.COM> terryl@tekcrl.LABS.TEK.COM writes: Well, as they say (whoever THEY are!! (-:), RTFM (at least for a BSD system): sethostid(2), gethostid(2), hostid(1) Not on suns. The hostid is set in a prom, and has nothing to do with ip address. Things like mathematica use it for compy protection. Greg. -- Gregory Bond, Burdett Buckeridge & Young Ltd, Melbourne, Australia Internet: gnb@melba.bby.oz.au non-MX: gnb%melba.bby.oz@uunet.uu.net Uucp: {uunet,pyramid,ubc-cs,ukc,mcvax,prlb2,nttlab...}!munnari!melba.bby.oz!gnb