Solved Get MAC by IP
-
Hi!
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? -
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.