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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. how to get ethernet card ip address

how to get ethernet card ip address

Scheduled Pinned Locked Moved C / C++ / MFC
tutorial
4 Posts 3 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.
  • V Offline
    V Offline
    vc programmer 1
    wrote on last edited by
    #1

    i want to get ethernet card(RS-232 serial)'s ip address & MAC address.

    P 1 Reply Last reply
    0
    • V vc programmer 1

      i want to get ethernet card(RS-232 serial)'s ip address & MAC address.

      P Offline
      P Offline
      pc_dev
      wrote on last edited by
      #2

      Use following for IP "gethostbyname" it returns pointer to "hostent structure" which contains IP for MAC address "GetAdaptersInfo"

      V 1 Reply Last reply
      0
      • P pc_dev

        Use following for IP "gethostbyname" it returns pointer to "hostent structure" which contains IP for MAC address "GetAdaptersInfo"

        V Offline
        V Offline
        vc programmer 1
        wrote on last edited by
        #3

        can i get my ethernet card information? how to use GetAdaptersInfo function. i have already get local pc computer ip address and mac address.but this is only for computer. i don't know,how i can get other device ip address(may be printer,fax,bar code reader) in my network. can i get device information..??? please , explain me...

        D 1 Reply Last reply
        0
        • V vc programmer 1

          can i get my ethernet card information? how to use GetAdaptersInfo function. i have already get local pc computer ip address and mac address.but this is only for computer. i don't know,how i can get other device ip address(may be printer,fax,bar code reader) in my network. can i get device information..??? please , explain me...

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

          vc-programmer- wrote: how to use GetAdaptersInfo function. See here. vc-programmer- wrote: i don't know,how i can get other device ip address(may be printer,fax,bar code reader) in my network. One way, if you know the name, would be with gethostbyname().


          "Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow

          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