Connecting Tech Pros Worldwide Forums | Help | Site Map

Get external/public IP address

Mrozu
Guest
 
Posts: n/a
#1: Nov 23 '05
Hi

How I can get external(public) IP address by AxWinSock control?? When I
take

msgbox(axWinsock1.LocalIp) I get 192.168.0.2, because I'm on NAT

Any ideas??

Thx Mrozu


Ken Tucker [MVP]
Guest
 
Posts: n/a
#2: Nov 23 '05

re: Get external/public IP address


Hi,

http://www.vb-tips.com/default.aspx?...f-a311e93c13c3

Ken
------------------
"Mrozu" <gmrozu@yahoo.pl> wrote in message
news:1130960506.405921.177950@g44g2000cwa.googlegr oups.com...[color=blue]
> Hi
>
> How I can get external(public) IP address by AxWinSock control?? When I
> take
>
> msgbox(axWinsock1.LocalIp) I get 192.168.0.2, because I'm on NAT
>
> Any ideas??
>
> Thx Mrozu
>[/color]


Mrozu
Guest
 
Posts: n/a
#3: Nov 23 '05

re: Get external/public IP address


ooo yes it's good way but what when www.whatsmyip.com stop working??
any independent ideas:>

Thx Mrozu

Andrew Morton
Guest
 
Posts: n/a
#4: Nov 23 '05

re: Get external/public IP address


Mrozu wrote:[color=blue]
> ooo yes it's good way but what when www.whatsmyip.com stop working??
> any independent ideas:>[/color]

If you have a CGI script on a web server somewhere, you could query that for
the IP address it sees from you.

Andrew


Mrozu
Guest
 
Posts: n/a
#5: Nov 23 '05

re: Get external/public IP address


Ok so without use web page i can't get my external ip??:> it is varey
funny i think:)

Mrozu

Andrew Morton
Guest
 
Posts: n/a
#6: Nov 23 '05

re: Get external/public IP address


Mrozu wrote:[color=blue]
> Ok so without use web page i can't get my external ip??:> it is varey
> funny i think:)[/color]

It isn't your external IP: it belongs to the NAT device.

Andrew


Closed Thread