PDA

Click to See Complete Forum and Search --> : retrieving ur ip


Gumppy
Nov 27th, 1999, 01:02 PM
Im aware that winipcfg can return u your current ip address. But i was wondering how would u actually retrieve that.. Also i was wondering how u could take the last part of a ip and change it.. like as in the ip being 169.22.136.44 How would u take the 169.22.136 part away from that and store it in a variable?

Any help would be greatly appreaciated!!
Thanks

Aaron Young
Nov 27th, 1999, 03:08 PM
One of the Quickest and Simplest ways is probably to use the Winsock Control and look at the LocalIP Property.

Private Sub Form_Load()
Caption = Winsock1.LocalIP
End Sub



------------------
Aaron Young
Analyst Programmer
aarony@redwingsoftware.com
adyoung@win.bright.net

Compwiz
Nov 27th, 1999, 09:35 PM
What if you have multiple IP's? I have 2 of them, because of a LAN that I setup.

------------------
Tom Young, 14 Year Old
tyoung@stny.rr.com
ICQ: 15743470 (http://wwp.icq.com/15743470) Add Me (http://wwp.icq.com/scripts/search.dll?to=15743470) ICQ Me (http://wwp.icq.com/scripts/contact.dll?msgto=15743470)
AIM: TomY10 (http://www.aol.com/aim/aim30.html)
PERL, JavaScript and VB Programmer