Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!uunet!zephyr.ens.tek.com!tekcrl!terryl From: terryl@tekcrl.LABS.TEK.COM Newsgroups: comp.unix.wizards Subject: Re: Determining one's own IP address. Message-ID: <5229@tekcrl.LABS.TEK.COM> Date: 13 Dec 89 18:14:00 GMT References: <601@bmers58.UUCP> <4429@ur-cc.UUCP> <604@bmers58.UUCP> <5215@tekcrl.LABS.TEK.COM> Reply-To: terryl@tekcrl.LABS.TEK.COM Organization: Tektronix, Inc., Beaverton, OR. Lines: 24 In article gnb@bby.oz.au (Gregory N. Bond) writes: >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. Guilty as charged. I have never used a Sun in my life (gotta toe the company line and use our own workstations, ya know!!! (-:), and probably never will use a Sun..... Help Stamp Out Fascist News Software !!!! !!!!