Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Get MAC by IP
Qt 6.11 is out! See what's new in the release blog

Get MAC by IP

Scheduled Pinned Locked Moved Solved General and Desktop
2 Posts 2 Posters 393 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • sitesvS Offline
    sitesvS Offline
    sitesv
    wrote on last edited by
    #1

    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?

    1 Reply Last reply
    0
    • M Offline
      M Offline
      mchinand
      wrote on last edited by mchinand
      #2

      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.

      1 Reply Last reply
      1

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved