I have a dial up connection and want to get that ip in vb...
plz help!
Printable View
I have a dial up connection and want to get that ip in vb...
plz help!
Try these samples:
by using API
with Winsock Control
Best regards.
------------------
smalig
[email protected]
http://vbcode.webhostme.com/
Not my internal ip... My modem ip..
So nobody knows how to get my external, dial up ip?
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
thanks!
but i dont think i have to use a bat?
hmmm doesnt seem to work... (not with a bat either..)
are you sure its right?