M A V
December 13th, 2004, 06:14 PM
I have IP address of the computer in a network. How can I determine it's MAC address ? :confused:
|
Click to See Complete Forum and Search --> : How to determine MAC address given an IP address? M A V December 13th, 2004, 06:14 PM I have IP address of the computer in a network. How can I determine it's MAC address ? :confused: leopete December 13th, 2004, 06:22 PM Go to run and type "cmd" (without the quotes) once in the command prompt type "ipconfig /all"....the will give your IP MAC DNS.....etc M A V December 13th, 2004, 06:43 PM I know how to get it manually of course. :) But since this fourm is named "Visual C++ Programming" i am asking: "How to do this in Visual C++ ?" akraus1 December 13th, 2004, 06:54 PM If you try to determine the Mac Address of a local Computer you can use GetAdaptersInfo from the IP Helper API. The IP_ADAPTER_INFO structure contains the member Address which contains the MAC Address as Bytes. For remote computers which have already contacted your PC you can try to read out the ARP cache with GetIpNetTable. This list contains a structure member named bPhysAddr which contains the MAC address. Hope this helps a bit. Andreas Masur December 14th, 2004, 04:34 AM [ Moved thread ] Andreas Masur December 14th, 2004, 04:35 AM You might want to search the forums....this has been asked several times... :cool: Zim327 December 14th, 2004, 10:13 AM see this previous post: http://www.codeguru.com/forum/showthread.php?t=321551 bash December 14th, 2004, 12:50 PM Use the SendArp function codeguru.com
Copyright Internet.com Inc., All Rights Reserved. |