Click to See Complete Forum and Search --> : ip..
johan1
Jan 19th, 2000, 11:30 AM
I have a dial up connection and want to get that ip in vb...
plz help!
smalig
Jan 19th, 2000, 11:33 AM
Try these samples:
by using API (http://vbcode.webhostme.com/en/click.asp?id=66)
with Winsock Control (http://vbcode.webhostme.com/en/click.asp?id=85)
Best regards.
------------------
smalig
smalig@hotmail.com
http://vbcode.webhostme.com/
johan1
Jan 26th, 2000, 12:12 AM
Not my internal ip... My modem ip..
johan1
Jan 27th, 2000, 05:58 PM
So nobody knows how to get my external, dial up ip?
ljdarten
Jan 27th, 2000, 08:09 PM
hmm. i know the program winipcfg.exe will give it to you... (it's in the windows dir i think)
as for vb getting it, i think there is a way to tell vb to default to the dial up adapter, which when you get winsock1.localip should give you the one you want. so the trick is basically to make the winsock go straight to the dial up adapter...
don't know how to do it though, just thought i could help point you in the right direction.
------------------
lucas darten
programmer-type guy
Hi
Try this
make a "BAT" file with line
"route print >c:\ip.txt"
shell("ip.bat,vbHide")
open ip.txt and find your IP
GoodLuck
johan1
Feb 23rd, 2000, 10:41 PM
thanks!
but i dont think i have to use a bat?
johan1
Feb 23rd, 2000, 10:58 PM
hmmm doesnt seem to work... (not with a bat either..)
are you sure its right?
vbforums.com
Copyright Internet.com Inc., All Rights Reserved.