CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Jan 2000
    Location
    Michigan, USA
    Posts
    1

    Getting IP address in vb

    I want to set up a vb program that will determine the IP address, and if it is invalid, then request a new one. I had to set up dchp for ip addressing, and sometimes the host isn't available. The DOS command is ipconfig. But rather than send the output to a file, and read it, I would prefer to use an API to determine the results. Anybody have any ideas???


  2. #2
    Join Date
    May 1999
    Posts
    3,332

    Re: Getting IP address in vb

    try using the Winsock functions gethostbyaddr or gethostbyname.


  3. #3

    Re: Getting IP address in vb

    This should help. It is a module containing various IP utilities.

    http://www.freevbcode.com/ShowCode.Asp?ID=199


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

Featured