🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.internet.socket
Article #5605

Re: How to find WAN IP adr in a C++?

#5605
From: Hans Galema
Date: Thu, 22 Jul 2004 13:02
14 lines
1345 bytes
David wrote:

> I can check teh IP adr of the modem via
> http://www.webcogs.com/whatsmyipaddress.aspx
> 
> How can I find this IP adr (IP adr of my cable modem) from a C++ application

Use a HTTP component to get that page. Then parse out the IP-address.

The following page is much simpler to parse:

http://checkip.dyndns.org/

Hans.
Technical Details
Message-ID: <40ffba75@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <40ff854d$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 11508e,b354fa99cd96f2ad
X-Google-Attributes: gid11508e,public
X-Google-Language: ENGLISH,ASCII-7-bit
Date: Thu, 22 Jul 2004 15:02:20 +0200
From: Hans Galema <dontusethis@dontusethis.nl>
User-Agent: Mozilla Thunderbird 0.7 (Windows/20040616)
X-Accept-Language: en-us, en
MIME-Version: 1.0
Newsgroups: borland.public.cppbuilder.internet.socket
Subject: Re: How to find WAN IP adr in a C++?
References: <40ff854d$1@newsgroups.borland.com>
In-Reply-To: <40ff854d$1@newsgroups.borland.com>
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: 129.125.201.248
Message-ID: <40ffba75@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1090501237 129.125.201.248 (22 Jul 2004 06:00:37 -0700)
Lines: 14
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail