Results 1 to 3 of 3

Thread: IP Address with Win32API

  1. #1

    Thread Starter
    New Member
    Join Date
    Mar 2002
    Location
    Dhaka, Bangladesh
    Posts
    2

    Post IP Address with Win32API

    Hi there,
    My name is Saber. I am an ameture programmer, just pass time with programming. I badly wanna know about getting the IP address of my computer. I know that with API everything is possible. Is there anyone kind enough to solve my problem? I want full source code of retrieving the IP address from any computer.
    Hope someone will help me.
    S. M. Abdullah Saber

  2. #2
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333
    You don't need an API for that. Just add a WinSock control, then say
    VB Code:
    1. Private Sub Form_Load()
    2. Label1.Caption = WinSock1.LocalIP
    3. End Sub

  3. #3
    Black Cat JoshT's Avatar
    Join Date
    Nov 2000
    Location
    WNY, USA
    Posts
    4,032
    Try http://www.mvps.org/vbnet/ and look for the most popular code section for how to do this API style.
    Josh
    Get these: Mozilla Opera OpenBSD
    I have books for sale: "MCSD in a Nutshell" and "VB Distributed Exam Cram" - PM me for details. Will also trade for a decent ATX Pentium 2 MB/CPU/RAM combo.

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