Results 1 to 3 of 3

Thread: ip address

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Sep 2004
    Location
    Kolkata, India
    Posts
    290

    ip address

    Hi

    How to get the ip address of a machine


    thanks

    asm

  2. #2
    Hyperactive Member JXDOS's Avatar
    Join Date
    Aug 2006
    Location
    Mars...
    Posts
    423

    Re: ip address

    search the forum.. it has been posted loads of times.
    If my post has been helpful, please rate it!

  3. #3
    PowerPoster sparrow1's Avatar
    Join Date
    May 2005
    Location
    Globetrotter
    Posts
    2,820

    Re: ip address

    Quote Originally Posted by asm
    Hi

    How to get the ip address of a machine


    thanks

    asm
    Hi,

    You can try this way to get your IP address;

    VB Code:
    1. Dim s As String = ""
    2.      Dim addressList As System.Net.IPAddress() = Dns.GetHostByName(Dns.GetHostName()).AddressList
    3.  
    4.      Dim i As Integer
    5.  
    6.      For i = 0 To addressList.Length - 1
    7.           s += addressList(i).ToString() + ControlChars.Lf
    8.      Next i
    9.      textBox1.Text = s


    Wkr,

    sparrow1
    Wkr,
    sparrow1

    If I helped you, don't forget to Rate my post. Thank you

    I'm using Visual Studio.Net 2003 and
    2005
    How to learn VB.Net Create setup with VB 2005 Drawing for beginners VB.Net Tutorials GDI+ Tutorials
    Video's for beginners

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