From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,f9ea9aa446a60c65 X-Google-Attributes: gidfee84,public From: werme@alingo.zk3.dec.com (Eric Werme) Subject: Re: gethostid() never works onAlpha Date: 1995/11/06 Message-ID: #1/1 X-Deja-AN: 118673572 references: <471qi0$uc7@harbinger.cc.monash.edu.au> organization: Digital Equipment Corporation reply-to: werme@zk3.dec.com newsgroups: comp.unix.osf.osf1 Dan.Pop@mail.cern.ch (Dan Pop) writes: >Since gethostid is broken (as you have already noticed), use gethostname >to get the name of the host, then gethostbyname to get its IP address. Err, at the risk of opening the can of worms in Pandora's box, let's just say we don't use it. After all, IP addresses are assigned to network interfaces, not systems. # hostid 0 # hostid 1234 # hostid 0x4d2 # hostid 0x1234 # hostid 0x1234 -- Eric (Ric) Werme | werme@zk3.dec.com Digital Equipment Corp. | This space intentionally left blank.