Results 1 to 8 of 8

Thread: ip..

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Jan 2000
    Posts
    21

    Post

    I have a dial up connection and want to get that ip in vb...
    plz help!

  2. #2
    Addicted Member
    Join Date
    Oct 1999
    Posts
    232

    Post

    Try these samples:

    by using API
    with Winsock Control

    Best regards.

    ------------------
    smalig
    [email protected]
    http://vbcode.webhostme.com/



  3. #3

    Thread Starter
    Junior Member
    Join Date
    Jan 2000
    Posts
    21

    Post

    Not my internal ip... My modem ip..

  4. #4

    Thread Starter
    Junior Member
    Join Date
    Jan 2000
    Posts
    21

    Post

    So nobody knows how to get my external, dial up ip?

  5. #5
    New Member
    Join Date
    Jan 2000
    Location
    mount clemens, mi, us
    Posts
    12

    Post

    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

  6. #6
    Guest

    Post

    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

  7. #7

    Thread Starter
    Junior Member
    Join Date
    Jan 2000
    Posts
    21

    Post

    thanks!
    but i dont think i have to use a bat?

  8. #8

    Thread Starter
    Junior Member
    Join Date
    Jan 2000
    Posts
    21

    Post

    hmmm doesnt seem to work... (not with a bat either..)
    are you sure its right?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width