Results 1 to 3 of 3

Thread: How to get the IP ?

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Sep 2002
    Posts
    21

    Question How to get the IP ?

    I want to know the IP of my computer,
    How should I do?

    Can I get some examples?
    Thanks.

  2. #2
    l33t! MrPolite's Avatar
    Join Date
    Sep 2001
    Posts
    4,428
    VB Code:
    1. Imports Imports System.Net
    2. Imports System
    3. Dim strHostName As String = Dns.GetHostName
    4. Dim ipEntry As IPHostEntry = Dns.GetHostByName(strHostName)
    5. Dim IpAddr() As IPAddress = ipEntry.AddressList
    6. Dim myIP As String
    7.  
    8. myIP = IpAddr(0).ToString

    this was posted by Cander before
    rate my posts if they help ya!
    Extract thumbnail without reading the whole image file: (C# - VB)
    Apply texture to bitmaps: (C# - VB)
    Extended console library: (VB)
    Save JPEG with a certain quality (image compression): (C# - VB )
    VB.NET to C# conversion tips!!

  3. #3

    Thread Starter
    Junior Member
    Join Date
    Sep 2002
    Posts
    21

    Talking

    Thank you, MrPoliet.

    I am successful.

    Thank you very much!

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