πŸš€ go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: get ip behind dchp

#6146
From: Evariste HORNECKER
Date: Mon, 06 Jun 2005 12:37
15 lines
1349 bytes
Look at the function "gethostbyaddr" (in the Winsock2 library)
If you know the name of your computer, you can have the current IP address.

Hope it helps

"Nick Rollas" <nickrollas@hotmail.com> a οΏ½crit dans le message de news: 
42a42712@newsgroups.borland.com...
> Hello,
>
> my computer gets an IP address from dhcp.
> How can I know that IP address that is not configured on the machine but 
> taken from dchp?
>
> Thanks !
> 
Technical Details
Message-ID: <42a444c7$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!news-out.nntp.be!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail
References: <42a42712@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,9c6ff63c205cc16d
X-Google-Attributes: gid10cc67,public
X-Google-Language: ENGLISH,ASCII
From: "Evariste HORNECKER" <evariste.horneckerSTOPTHESPAM@neosys.fr>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <42a42712@newsgroups.borland.com>
Subject: Re: get ip behind dchp
Date: Mon, 6 Jun 2005 14:37:35 +0200
Lines: 17
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.2527
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2527
X-RFC2646: Format=Flowed; Response
NNTP-Posting-Host: 80.13.76.103
Message-ID: <42a444c7$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1118061767 80.13.76.103 (6 Jun 2005 05:42:47 -0700)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!news-out.nntp.be!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail