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 IP adress?

How to get IP adress?

Scheduled Pinned Locked Moved C / C++ / MFC
questionc++tutorial
4 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.
  • B Offline
    B Offline
    birajendu
    wrote on last edited by
    #1

    HI, How can i get IP adress of my system thru a VC++ application, thanx in advance..

    birajendu CyberG India Delhi India

    S N S 3 Replies Last reply
    0
    • B birajendu

      HI, How can i get IP adress of my system thru a VC++ application, thanx in advance..

      birajendu CyberG India Delhi India

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

      you can use GetAdaptersInfo function

      1 Reply Last reply
      0
      • B birajendu

        HI, How can i get IP adress of my system thru a VC++ application, thanx in advance..

        birajendu CyberG India Delhi India

        N Offline
        N Offline
        Nibu babu thomas
        wrote on last edited by
        #3

        birajendu wrote:

        How can i get IP adress of my system thru a VC++ application,

        Use gethostbyname or getaddrinfo.


        Nibu thomas A Developer Programming tips[^]  My site[^]

        1 Reply Last reply
        0
        • B birajendu

          HI, How can i get IP adress of my system thru a VC++ application, thanx in advance..

          birajendu CyberG India Delhi India

          S Offline
          S Offline
          Suresh H
          wrote on last edited by
          #4

          use IPM_GETADDRESS Message Retrieves the address values for all four fields in the IP address control. Syntax To send this message, call the SendMessage function as follows. lResult = SendMessage( // returns LRESULT in lResult (HWND) hWndControl, // handle to destination control (UINT) IPM_GETADDRESS, // message ID (WPARAM) wParam, // = 0; not used, must be zero (LPARAM) lParam // = (LPARAM) (LPDWORD) pdwAddr; );

          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