Click to See Complete Forum and Search --> : How to find IP Addresses of Machines on LAN


jehanzeb_bs
October 1st, 2002, 11:01 PM
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.

dimm_coder
October 2nd, 2002, 04:11 AM
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.