开发者

Retrieve the mac address of a remote pc Qt C++

开发者 https://www.devze.com 2023-03-14 09:50 出处:网络
I just want to know how to get the mac address of a remote computer. void LocateAddress() { QString host = \"192.168.1.1\";

I just want to know how to get the mac address of a remote computer.

void LocateAddress()
{
    QString host = "192.168.1.1";

    .....function for 开发者_如何学Pythongetting the mac address....

}

Is there a way to create a function that retrieves the Mac Address of a remote pc??? Using ng Windows OS


Using arp -a 192.168.1.1 on the command line you can get that information if you just need it once.

If you want to do it programmatically, there is a SendARP function in the windows API, documented here

Note that this only works on your local network, there must be no routers between you and the target computer.

0

精彩评论

暂无评论...
验证码 换一张
取 消