CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Aug 2001
    Posts
    0

    Local Machine IP Address

    Is there any Win32 API call to get the local machine IP adress if its connected to the network?

    Thanks.


  2. #2
    Join Date
    Apr 2000
    Location
    San Francisco, California, USA
    Posts
    4,467

    Re: Local Machine IP Address

    Yes, you can use gethostbyname on the result of gethostname to retrieve
    the IP addresses of the local machine. See this post for a sample
    http://codeguru.earthweb.com/cgi-bin...&Number=173042



    Russian Software Development Network -- http://www.rsdn.ru

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