From: Charles Tam on
Hi,
What is the best way to retrieve my router's public IP address in VC++?
My router receives a dynamic IP address from my ISP. Overtime, the address
changes, and I would like to retrieved the updated address regularly.


From: Joseph M. Newcomer on
The first place to start would be your router's documentation. Next, your router
company's tech support people.
joe
On Tue, 29 Apr 2008 19:31:01 -0700, Charles Tam <CharlesTam(a)discussions.microsoft.com>
wrote:

>Hi,
>What is the best way to retrieve my router's public IP address in VC++?
>My router receives a dynamic IP address from my ISP. Overtime, the address
>changes, and I would like to retrieved the updated address regularly.
>
Joseph M. Newcomer [MVP]
email: newcomer(a)flounder.com
Web: http://www.flounder.com
MVP Tips: http://www.flounder.com/mvp_tips.htm
From: Serge Wautier on
Assuming your router is ocnnected to the Internet and what you want is your
public IP address, a commonly used technique consists in sending an HTTP GET
request to website that tell you your public IP address (such as
whatismyip.org). You may want to support a list of different servers in case
on becomes unrepsonsive (remember they are free services).

HTH,

Serge.
http://www.apptranslator.com - Localization tool for your MFC applications



"Charles Tam" <CharlesTam(a)discussions.microsoft.com> wrote in message
news:34C15FFB-2D3D-4037-8C4C-8E49F612328E(a)microsoft.com...
> Hi,
> What is the best way to retrieve my router's public IP address in VC++?
> My router receives a dynamic IP address from my ISP. Overtime, the address
> changes, and I would like to retrieved the updated address regularly.
>
>

From: Charles Tam on
Thanks for your reply. Unfortunately, I need a solution that would work for
any router.

"Joseph M. Newcomer" wrote:

> The first place to start would be your router's documentation. Next, your router
> company's tech support people.
> joe
> On Tue, 29 Apr 2008 19:31:01 -0700, Charles Tam <CharlesTam(a)discussions.microsoft.com>
> wrote:
>
> >Hi,
> >What is the best way to retrieve my router's public IP address in VC++?
> >My router receives a dynamic IP address from my ISP. Overtime, the address
> >changes, and I would like to retrieved the updated address regularly.
> >
> Joseph M. Newcomer [MVP]
> email: newcomer(a)flounder.com
> Web: http://www.flounder.com
> MVP Tips: http://www.flounder.com/mvp_tips.htm
>
From: Charles Tam on
Thanks for your reply.

"Serge Wautier" wrote:

> Assuming your router is ocnnected to the Internet and what you want is your
> public IP address, a commonly used technique consists in sending an HTTP GET
> request to website that tell you your public IP address (such as
> whatismyip.org). You may want to support a list of different servers in case
> on becomes unrepsonsive (remember they are free services).
>
> HTH,
>
> Serge.
> http://www.apptranslator.com - Localization tool for your MFC applications
>
>
>
> "Charles Tam" <CharlesTam(a)discussions.microsoft.com> wrote in message
> news:34C15FFB-2D3D-4037-8C4C-8E49F612328E(a)microsoft.com...
> > Hi,
> > What is the best way to retrieve my router's public IP address in VC++?
> > My router receives a dynamic IP address from my ISP. Overtime, the address
> > changes, and I would like to retrieved the updated address regularly.
> >
> >
>
>