Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Mac and IP address problem

Mac and IP address problem

Scheduled Pinned Locked Moved C / C++ / MFC
sysadminhelp
4 Posts 2 Posters 0 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.
  • T Offline
    T Offline
    trioum
    wrote on last edited by
    #1

    On my computer I have various network connection wi-fi , ethernet , USB . Now I want to know the mac address and IP address of the connection and the Active network i.e. which is enabled

    Trioum

    D 1 Reply Last reply
    0
    • T trioum

      On my computer I have various network connection wi-fi , ethernet , USB . Now I want to know the mac address and IP address of the connection and the Active network i.e. which is enabled

      Trioum

      D Offline
      D Offline
      David Crow
      wrote on last edited by
      #2

      Have you experimented with GetAdaptersInfo(), GetInterfaceInfo(), GetAdaptersAddresses(), GetNumberOfInterfaces(), etc?

      "One man's wage rise is another man's price increase." - Harold Wilson

      "Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons

      "Some people are making such thorough preparation for rainy days that they aren't enjoying today's sunshine." - William Feather

      T 1 Reply Last reply
      0
      • D David Crow

        Have you experimented with GetAdaptersInfo(), GetInterfaceInfo(), GetAdaptersAddresses(), GetNumberOfInterfaces(), etc?

        "One man's wage rise is another man's price increase." - Harold Wilson

        "Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons

        "Some people are making such thorough preparation for rainy days that they aren't enjoying today's sunshine." - William Feather

        T Offline
        T Offline
        trioum
        wrote on last edited by
        #3

        I tried but only able to get MAC address. not understand to get IP address and not able to find active network .

        Trioum

        D 1 Reply Last reply
        0
        • T trioum

          I tried but only able to get MAC address. not understand to get IP address and not able to find active network .

          Trioum

          D Offline
          D Offline
          David Crow
          wrote on last edited by
          #4

          trioum wrote:

          not understand to get IP address and not able to find active network .

          How about showing the code you used for this?

          "One man's wage rise is another man's price increase." - Harold Wilson

          "Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons

          "Some people are making such thorough preparation for rainy days that they aren't enjoying today's sunshine." - William Feather

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups