Howto get IP address for a given adapter

Home Forums Discussions Support Howto get IP address for a given adapter

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #4877
    glandegrande
    Participant

      Hi, people. Nice forum!

      I have been using Winpkfilter. I need to know the ip address of the ip stack bound to a given adapter/interface.

      Can anyone help me?
      Thnkx!

      #5631
      Vadim Smirnov
      Keymaster

        The only documented way is IP Helper API.

        #5632
        glandegrande
        Participant

          Thank you, SerpentFly. That was fast.

          printf("Adapter Name: %sn", pAdapter->AdapterName);
          printf("Adapter Desc: %sn", pAdapter->Description);
          printf("Adapter Addr: %ldn", pAdapter->Address);
          printf("IP Address: %sn", pAdapter->IpAddressList.IpAddress.String);
          printf("IP Mask: %sn", pAdapter->IpAddressList.IpMask.String);
        Viewing 3 posts - 1 through 3 (of 3 total)
        • You must be logged in to reply to this topic.