Results 1 to 4 of 4

Thread: Problem with finding Find IP Address ??

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Oct 1999
    Location
    NY, USA.
    Posts
    240

    Post

    Can Someone Help Me With this Problem?

    When I'm online and I use the file winipcfg to find my IP Adrress I get a value such as
    "152.175.235.164" - which I know is Correct.

    But in vb when I use for example :
    Winock1.LocalIP I get a value such as
    "4.9.97.70"

    What can use or what can I do to get the value such as "152.175.235.164"

    Thanks,
    OmarSwan.


    ------------------
    OmarSwan
    Student
    [email protected]

    "Jesus Lives"

  2. #2
    Addicted Member
    Join Date
    Jan 1999
    Posts
    173

    Post

    What the Winsock control is doing is getting your static IP address, which is the one set in the Network Properties (from Control Panel).
    I tried all the examples of getting an IP addr that I had, and they all returned the network IP address.

    ------------------
    "To the glory of God!"

  3. #3
    Guest

    Post

    It might have to do with the "Subnet Mask". If you go to a DOS prompt and type "ipconfig", you'll see this. Maybe that will put you in the right direction.

    [This message has been edited by VirtuallyVB (edited 12-05-1999).]

  4. #4
    Addicted Member
    Join Date
    Jan 1999
    Posts
    173

    Post

    I see the problem, but I don't know how to fix it! The Winsock (or whatever you are using) is returning the IP address of your ethernet adapted and not your modem! How you get around this I don't know.

    ------------------
    "To the glory of God!"


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