Home > Software engineering >  Refer to the great spirit: MFC enter the MAC address, how to find the IP address of the correspondin
Refer to the great spirit: MFC enter the MAC address, how to find the IP address of the correspondin

Time:10-21

Seldom contact network programming before, now want to do a wifi devices test side, the scanning equipment on the MAC address, then log in the corresponding network address (IP address), can you tell me how to achieve this function? It is best to have specific code,

CodePudding user response:

Graduation design soon??

#include
System (" ipconfig \/all & gt; D: \ \ a.t xt ");

Then analysis a.t xt file content

CodePudding user response:

Get MAC SendARP () through the IP, MAC, and then compare to get the corresponding MAC IP ~

CodePudding user response:

refer to the second floor VisualEleven response:
SendARP get MAC () through the IP, and then compare the MAC, get the corresponding MAC IP ~


Is excuse me this how to operate? The corresponding code?

CodePudding user response:

reference 1st floor draculacsdn response:
quick graduation design??

#include
System (" ipconfig \/all & gt; D: \ \ a.t xt ");

Then analysis a.t xt file content


Like and I demand is not very consistent, what I need is to use a device to connect computer wifi on the router, and then according to the device's MAC address query the corresponding IP address

CodePudding user response:

http://blog.csdn.net/gaojinshan/article/details/8990802

CodePudding user response:

reference 5 floor VisualEleven reply:
http://blog.csdn.net/gaojinshan/article/details/8990802


This, what I want is that, in turn, a known MAC address to get the IP address of the corresponding, is a wifi access wifi module, I need to communicate with it an IP address, but I know it's MAC address,,

CodePudding user response:

refer to 6th floor qq_32531661 response:
Quote: refer to the fifth floor VisualEleven reply:

http://blog.csdn.net/gaojinshan/article/details/8990802


This, what I want is that, in turn, the known corresponding IP address, MAC address to get a wifi module is connected to the wifi, I need to communicate with it an IP address, but I know it's MAC address,,

You need only scan a subnet, if no prior communication and the wifi module, local arp table is no MAC - IP address corresponding to the cache, way is to scan the subnet, again send arp, get the address of the preserved to look up,

CodePudding user response:

refer to 7th floor cutmelon response:
Quote: refer to the sixth floor qq_32531661 response:

Quote: refer to the fifth floor VisualEleven reply:

http://blog.csdn.net/gaojinshan/article/details/8990802


This, what I want is that, in turn, the known corresponding IP address, MAC address to get a wifi module is connected to the wifi, I need to communicate with it an IP address, but I know it's MAC address,,

You need only scan a subnet, if no prior communication and the wifi module, local arp table is no MAC - IP address corresponding to the cache, way is to scan the subnet, again send arp, to find, get the address of the preserved


Do you have the corresponding routines and concrete implementation method? Is not familiar to this reality
  • Related