Article View: borland.public.cppbuilder.internet.socket
Article #5136Re: How can I get the public IP address of a router?
From: Remy Lebeau (TeamB)
Date: Fri, 08 Oct 2004 20:34
Date: Fri, 08 Oct 2004 20:34
19 lines
1553 bytes
1553 bytes
"gangleec" <gangleec@yahoo.com> wrote in message news:4166f446$1@newsgroups.borland.com... > I need the public IP address of the router. Since the approach to doing that is not standardized across different router manufacturers, the simpliest way is to make an request to an external website that will report back your router's IP address, such as http://www.whatismyip.com or http://checkip.dyndns.org. > So, I make following codes and run it from one of my > home network PC. But, it displays private IP address. As well it should, because that code is not querying the router at all. It is querying only your local machine instead. Gambit
Technical Details
Message-ID:
<4166f9e1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!proxad.net!newsfeed.icl.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<4166f446$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 11508e,75a5b47936081a55 X-Google-Attributes: gid11508e,public X-Google-Language: ENGLISH,ASCII-7-bit From: "Remy Lebeau \(TeamB\)" <no.spam@no.spam.com> Newsgroups: borland.public.cppbuilder.internet.socket References: <4166f446$1@newsgroups.borland.com> Subject: Re: How can I get the public IP address of a router? Date: Fri, 8 Oct 2004 13:34:47 -0700 Lines: 21 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: <4166f9e1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1097267681 68.69.17.41 (8 Oct 2004 13:34:41 -0700) Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!proxad.net!newsfeed.icl.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail