🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.nativeapi
Article #5083

Re: IP Address of Workstation

#5083
From: Remy Lebeau (TeamB)
Date: Fri, 30 Sep 2005 19:16
13 lines
1341 bytes
"Shane Stump" <ShaneStumpNOSPAM@StumpWare.com> wrote in message
news:433d8a67$1@newsgroups.borland.com...

> Does anyone have a code sample to get the ip address(s) of
> a local workstation given the workstation's name as returned
> by gethostname()?

Pass the name to gethostbyname().  The hostent structure that is returned
will contain a list of the available IP addresses.


Gambit
Technical Details
Message-ID: <433d8ee6$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!newsfeed.hal-mli.net!feeder1.hal-mli.net!news-out.newsfeeds.com!propagator3-LAX.newsfeeds.com!news-in.spamkiller.net!news-in.superfeed.net!caladan.landsraad.net!newsgroups.borland.com!not-for-mail
References: <433d8a67$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,bd4babe6e8b894e9
X-Google-Attributes: gid10cc67,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Remy Lebeau \(TeamB\)" <no.spam@no.spam.com>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <433d8a67$1@newsgroups.borland.com>
Subject: Re: IP Address of Workstation
Date: Fri, 30 Sep 2005 12:16:21 -0700
Lines: 15
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1409
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409
NNTP-Posting-Host: 68.69.17.41
Message-ID: <433d8ee6$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1128107750 68.69.17.41 (30 Sep 2005 12:15:50 -0700)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!newsfeed.hal-mli.net!feeder1.hal-mli.net!news-out.newsfeeds.com!propagator3-LAX.newsfeeds.com!news-in.spamkiller.net!news-in.superfeed.net!caladan.landsraad.net!newsgroups.borland.com!not-for-mail