How can I get my Real IP?

Peperl
04-22-2003, 09:39 AM
Hi everybody!

Does anybody knows how can I get in Visual Basic my real IP?
Is for use in a program to transfers files between users like Msn or Irc, but with the "retry" possibility ... but I want to do that the programa says your real IP.

Thanks, and sorry for my English, but I'm from Spain :P

spooke2k
04-22-2003, 09:45 AM
Add a winsock control to your form add the code below to formload or a button or what ever and there you are y2 is the ip address so to display just add text1.text = y2 and the text1 will display the ip address

dim y2

y2 = Winsock1.LocalIP

Peperl
04-22-2003, 09:50 AM
Thanks a lot!

But I have a question ... this give me the ip local (into my LAN), or give me my IP real (who is connected to Internet)?

chris00
04-22-2003, 09:54 AM
if you are on a LAN that will give you your local IP

spooke2k
04-22-2003, 09:58 AM
But i can't remeber the coding exactly but if u read up on winsock control then i'm pretty sure you can set it by the net ip address have. Have a look at the object browser under Winsock it will show all commands that winsock can do ok

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum