Here is the PrintMAC function: void CmfcServerDlg::PrintMACaddress(unsigned char MACData) ![]() I found that using the ARP function may help with this or since the MAC address is data i may transmit it as a string or raw data but i have idea how to this If (selected_ip_adr = addr_str->IpAddress.String) PIP_ADAPTER_INFO pAdapterInfo = AdapterInfo // Contains pointer to current adapter infoĬonst IP_ADDR_STRING *addr_str = &pAdapterInfo->IpAddressList When i debug the program i see that when trying to get the MAC address of another computer the program doesn't go into the if statement and run the line PrintMACaddress(pAdapterInfo->Address) void CmfcServerDlg:: PrintMACFromIP(const CString &selected_ip_adr) my current code only gets the MAC address if i run the server and client and the same computer. ![]() The server is on one computer (it contains 2 listboxes, 1 for the IP addresses of connected clients, the other for the MAC address) the client is on another computer. ![]() I am trying to get the MAC address of another computer using a server and client program in c++ using UDP connections.
0 Comments
Leave a Reply. |