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. how to get a pc-name form its ip-address?

how to get a pc-name form its ip-address?

Scheduled Pinned Locked Moved C / C++ / MFC
tutorialquestion
5 Posts 4 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.
  • A Offline
    A Offline
    Aaron K B Huang
    wrote on last edited by
    #1

    Thanks ahead!

    S A L 3 Replies Last reply
    0
    • A Aaron K B Huang

      Thanks ahead!

      S Offline
      S Offline
      shetty
      wrote on last edited by
      #2

      You get it from command line using nbtstat -A "IP_address" Thanks, Satish

      1 Reply Last reply
      0
      • A Aaron K B Huang

        Thanks ahead!

        A Offline
        A Offline
        Anders Molin
        wrote on last edited by
        #3

        What name do you want? The "internal" netbios name, like "server", or the dns-name, like "codeproject.com" - Anders Money talks, but all mine ever says is "Goodbye!"

        1 Reply Last reply
        0
        • A Aaron K B Huang

          Thanks ahead!

          L Offline
          L Offline
          Le centriste
          wrote on last edited by
          #4

          see documentation for gethostbyaddr() in MSDN. Maybe that'll help. Michel It is a lovely language, but it takes a very long time to say anything in it, because we do not say anything in it, unless it is worth taking a very long time to say, and to listen to.
          - TreeBeard

          A 1 Reply Last reply
          0
          • L Le centriste

            see documentation for gethostbyaddr() in MSDN. Maybe that'll help. Michel It is a lovely language, but it takes a very long time to say anything in it, because we do not say anything in it, unless it is worth taking a very long time to say, and to listen to.
            - TreeBeard

            A Offline
            A Offline
            Aaron K B Huang
            wrote on last edited by
            #5

            I tried many source corders, did not find a worked sample for gethostbyaddr(). :(

            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