Results 1 to 5 of 5

Thread: how to know my IP and write it in a label

  1. #1

    Thread Starter
    Member
    Join Date
    May 2007
    Posts
    60

    how to know my IP and write it in a label

    hi everyone

    i want to have on my form my ip when i load it , i want to it to be writen on a label
    can someone help me to do that
    thank you all

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

    Re: how to know my IP and write it in a label

    Place a Winsock control on your form.
    Code:
    Private Sub Form_Load()
    Label1.Caption = Winsock1.LocalIP
    End Sub

  3. #3
    "Digital Revolution"
    Join Date
    Mar 2005
    Posts
    4,471

    Re: how to know my IP and write it in a label

    If you are behind a router or something, that will return your LAN IP. If you want your internet IP then click the link in my signature.

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

    Re: how to know my IP and write it in a label

    Quote Originally Posted by DigiRev
    If you want your internet IP then click the link in my signature.
    Nice piece of work.

  5. #5
    "Digital Revolution"
    Join Date
    Mar 2005
    Posts
    4,471

    Re: how to know my IP and write it in a label

    Quote Originally Posted by Hack
    Nice piece of work.
    Thanks, Hack.

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