Results 1 to 3 of 3

Thread: retrieving ur ip

  1. #1

    Thread Starter
    Member
    Join Date
    Nov 1999
    Posts
    33

    Post

    Im aware that winipcfg can return u your current ip address. But i was wondering how would u actually retrieve that.. Also i was wondering how u could take the last part of a ip and change it.. like as in the ip being 169.22.136.44 How would u take the 169.22.136 part away from that and store it in a variable?

    Any help would be greatly appreaciated!!
    Thanks

  2. #2
    Guru Aaron Young's Avatar
    Join Date
    Jun 1999
    Location
    Red Wing, MN, USA
    Posts
    2,177

    Post

    One of the Quickest and Simplest ways is probably to use the Winsock Control and look at the LocalIP Property.
    Code:
    Private Sub Form_Load()
        Caption = Winsock1.LocalIP
    End Sub

    ------------------
    Aaron Young
    Analyst Programmer
    [email protected]
    [email protected]

  3. #3
    Hyperactive Member
    Join Date
    Jul 1999
    Location
    NY, USA
    Posts
    270

    Post

    What if you have multiple IP's? I have 2 of them, because of a LAN that I setup.

    ------------------
    Tom Young, 14 Year Old
    [email protected]
    ICQ: 15743470 Add Me ICQ Me
    AIM: TomY10
    PERL, JavaScript and VB Programmer

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