CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Jul 2002
    Location
    Karachi, Pakistan
    Posts
    59

    How to find IP Addresses of Machines on LAN

    hi,
    i want to design an application that can tell the IP addresses of the machines(computers, routers etc) that are connected to a LAN. is there any way to do it. can someone tell me how can i do it or may give me some references of the related material. bye. looking forward to your replies.

  2. #2
    Join Date
    Sep 2002
    Location
    Belarus - Tirol, Austria
    Posts
    647
    Use NetServerEnum function. See about it in MSDN and sample code after remarks. When you get names of computers with this function, U mast call gethostbyname to retrieve IP.
    "UNIX is simple; it just takes a genius to understand its simplicity!"

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