Article View: borland.public.cppbuilder.nativeapi
Article #7606Re: IP address
From: Remy Lebeau (TeamB)
Date: Fri, 14 Jan 2005 20:15
Date: Fri, 14 Jan 2005 20:15
13 lines
1338 bytes
1338 bytes
"imams" <imamsiswanto@yahoo.com.sg> wrote in message news:41e7a93d$1@newsgroups.borland.com... > I need to know the IP of the computer that runs the apllication You should have just said as much in the first place. You can use the gethostname() and gethostbyname() functions from the WinSock API to get a list of all available IP addresses for the machine. Gambit
Technical Details
Message-ID:
<41e827f0$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!newsfeed.media.kyoto-u.ac.jp!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mailReferences:
<41e7177c$1@newsgroups.borland.com> <41e71d69$1@newsgroups.borland.com> <41e72a45$1@newsgroups.borland.com> <41e78327$1@newsgroups.borland.com> <41e7a93d$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,bd82eef6c9c16f3a 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: <41e7177c$1@newsgroups.borland.com> <41e71d69$1@newsgroups.borland.com> <41e72a45$1@newsgroups.borland.com> <41e78327$1@newsgroups.borland.com> <41e7a93d$1@newsgroups.borland.com> Subject: Re: IP address Date: Fri, 14 Jan 2005 12:15:36 -0800 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: <41e827f0$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1105733616 68.69.17.41 (14 Jan 2005 12:13:36 -0800) Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!newsfeed.media.kyoto-u.ac.jp!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail