Results 1 to 9 of 9

Thread: Get current IP

  1. #1

    Thread Starter
    Need-a-life Member Mc Brain's Avatar
    Join Date
    Apr 2000
    Location
    Buenos Aires, Argentina
    Posts
    6,808

    Get current IP

    I guess the forum should allow short words for searching. 4 letters is too much. How about if you need to look for "Err 5": None of those words would be allowed. I'm gonna post this on the "forums feedback"

    Ok, let's go to the problem. How can I get my current IP (trhough VB)?
    Emiliano F. Martín


    If a post has helped you then please Rate it! (and give the user points he/she deserves by clicking on the image).
    Encourage the person who helped you to keep doing it, and give him the points he deserves.


    MP3 Organizer: Freeware to logically organize all your MP3s.

  2. #2
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333
    Use the Winsock control.

  3. #3

    Thread Starter
    Need-a-life Member Mc Brain's Avatar
    Join Date
    Apr 2000
    Location
    Buenos Aires, Argentina
    Posts
    6,808
    how?
    Emiliano F. Martín


    If a post has helped you then please Rate it! (and give the user points he/she deserves by clicking on the image).
    Encourage the person who helped you to keep doing it, and give him the points he deserves.


    MP3 Organizer: Freeware to logically organize all your MP3s.

  4. #4
    Bouncy Member darre1's Avatar
    Join Date
    May 2001
    Location
    Peterborough, UK
    Posts
    3,828
    Surely you can get your own IP address without having to use an activeX control!?!?!?

    If not, then thats a bit shocking

    Still, i've found wierder things in VB

    Is there an API to get the current IP address or something similar?
    Confucious say, "Man standing naked in biscuit barrel not necessarily ****ing crackers."

    Don't forget to format your code in your posts

  5. #5
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333
    VB Code:
    1. 'this is the easiest way.   you might be able to get
    2. 'somewhere messing around with Wininet.dll
    3. Label1.Caption = Winsock1.LocalIP

  6. #6

  7. #7
    Hyperactive Member dflw's Avatar
    Join Date
    Apr 2001
    Location
    ct, usa
    Posts
    412
    so the IP that you get from
    VB Code:
    1. Text1.Text = Winsock1.LocalIP
    is the IP that you can recieve chat messages through if someone else has that IP? Or is it a different one?
    Visual Basic 6, HTML, JavaScript, learning C++

  8. #8
    DaoK
    Guest
    The code I have posted give all IP and not the first IP than it find. In my computer who is in Network I have two ip and sometime it find the 192.0.0.1 and some time the real one. So you should use my link

  9. #9

    Thread Starter
    Need-a-life Member Mc Brain's Avatar
    Join Date
    Apr 2000
    Location
    Buenos Aires, Argentina
    Posts
    6,808
    Originally posted by DaoK
    Here is the best way to find ALL ip
    Excellent.... that was what I need.
    Emiliano F. Martín


    If a post has helped you then please Rate it! (and give the user points he/she deserves by clicking on the image).
    Encourage the person who helped you to keep doing it, and give him the points he deserves.


    MP3 Organizer: Freeware to logically organize all your MP3s.

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