Re: know my ip



asit <lipu...@xxxxxxxxx> wrote:
I am developing an application in which I need to know my ip address
irespective of my internet connection(PPPoE, LAN, etc).

Somebody told me that I can query a web server over internet to know
my address. How can I do thins in C ????.

If I understand right, what you want is not you own actual IP but the
IP everybody sees from the internet. For example my IP is 10.0.0.31
and my gateway is 10.0.0.2 . But if I enter http://whatismyip.com/ the
page says: "Your IP Address Is 190.138.107.47" which is my public IP.
Is this what you want to find out??
.