Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
Get MAC by IP
sitesv last edited by
I'm trying to use QProcess + "arp" command (Windows) for getting mac by ip. But I had a problem with my own mac request... Ping executes, but arp table doesn't contains a mac for my pc ip. But ms SendArp (iphlpapi.h) works fine... What is the best way for my situation?
mchinand last edited by mchinand
You can get your local MAC addresses with QNetworkInterface. It's possible that pings to local IP addresses don't go through the normal network stack path for them to show up with arp.