Click here to Skip to main content
11,712,802 members (79,701 online)
Click here to Skip to main content

Using IP Helper API’s

, 31 Oct 2001 261.5K 3.5K 28
Rate this:
Please Sign up or sign in to vote.
This article demonstrates the usage of the Internet Protocol Helper API's
<!-- Download Links --> <!-- Article image -->

Sample Image - TCPInfo.jpg

<!-- Main HTML starts here -->

Introduction

Internet Protocol Helper (IP Helper) is an API that assists in the network administration of the local computer. You can use IP Helper to programmatically retrieve information about the network configuration of the local computer, and to modify that configuration. This article and the associated code demonstrate usage of some of the API’s. The sample application is developed using these API's and can be used for following purposes.

  1. Getting the TCP statistics such as active connections, segments sent and received etc.

  2. Getting the UDP statistics such as datagrams sent and received etc.

  3. Getting the IP statistics such as Reassembly time outs, invalid datagrams sent or received etc.

  4. Getting the ICMP statistics such as total ICMP messages sent or received, echo requests sent and echo replies received etc.

  5. Getting the active TCP connections with local and remote addresses and ports.

  6. Getting the active UDP connections with local address and ports.

These are some of the functions IP Helper API’s can do. In the sample application following API's were used.

  1. GetTcpStatistics()

    This API fills a MIB_TCPSTATS structure with TCP statistics. See sample application for usage.

  2. GetUdpStatistics()

    This API fills a MIB_UDPSTATS structure with UDP statistics. See sample application for usage.

  3. GetIpStatistics()

    This API fills a MIB_IPSTATS structure with IP statistics. See sample application for usage.

  4. GetIcmpStatistics()

    This API fills a MIB_ICMP structure with ICMP statistics about outgoing and incoming ICMP messages. See the sample application for usage.

  5. GetTcpTable()

    This API fills a buffer with the information about active TCP connections. Apart from the status of the connections (Established, closing etc.) the local and remote addresses and ports involved are also returned. See the sample application for the usage of this API.

  6. GetUdpTable()

    This API fills a buffer with UDP connections information. Only the local address and ports of the connection are returned. See the sample application for the usage of this API

License

This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here

Share

About the Author

Farooque Khan
United States United States
No Biography provided

You may also be interested in...

Comments and Discussions

 
Generalhelp with the header files Pin
bluebarnacle1-Feb-06 17:51
memberbluebarnacle1-Feb-06 17:51 
GeneralRe: help with the header files Pin
Nurrizki Brahmantyo23-Jun-07 19:01
memberNurrizki Brahmantyo23-Jun-07 19:01 
GeneralSetTcpEntry Pin
Vitoto19-May-05 10:05
memberVitoto19-May-05 10:05 
Questionwhere can you download IP Helper ? Pin
orenboskila7-Jul-04 6:24
memberorenboskila7-Jul-04 6:24 
AnswerRe: where can you download IP Helper ? Pin
ThatsAlok12-Feb-05 2:25
memberThatsAlok12-Feb-05 2:25 
GeneralPoor Code! I cannot compile the project! I cannot find the lib file and its head file! Pin
baogangfeng13-Jun-04 16:56
memberbaogangfeng13-Jun-04 16:56 
GeneralRe: Poor Code! I cannot compile the project! I cannot find the lib file and its head file! Pin
ThatsAlok12-Feb-05 2:27
memberThatsAlok12-Feb-05 2:27 
GeneralRe: Poor Code! I cannot compile the project! I cannot find the lib file and its head file! Pin
Andre Oliveira8-May-06 1:52
memberAndre Oliveira8-May-06 1:52 
GeneralRe: Poor Code! I cannot compile the project! I cannot find the lib file and its head file! Pin
ThatsAlok10-May-06 0:41
memberThatsAlok10-May-06 0:41 
GeneralClosing a port Pin
wildUK29-Sep-03 8:57
memberwildUK29-Sep-03 8:57 
GeneralRe: Closing a port Pin
Farooque29-Sep-03 18:36
memberFarooque29-Sep-03 18:36 
GeneralRe: Closing a port Pin
Vitoto19-May-05 10:03
memberVitoto19-May-05 10:03 
QuestionWhere's the article? Pin
Paul A. Howes18-Nov-02 9:38
memberPaul A. Howes18-Nov-02 9:38 
Generalgetting infos about the listening process Pin
Christophe Renard20-Nov-01 2:55
memberChristophe Renard20-Nov-01 2:55 
GeneralRe: getting infos about the listening process Pin
Anonymous11-Nov-02 5:51
sussAnonymous11-Nov-02 5:51 
GeneralA second to the "missing info" Pin
Peter Weyzen2-Nov-01 12:06
memberPeter Weyzen2-Nov-01 12:06 
GeneralRe: A second to the "missing info" Pin
niverson15-Aug-02 11:53
memberniverson15-Aug-02 11:53 
GeneralMissing Information... Pin
Daniel Madden1-Nov-01 4:11
memberDaniel Madden1-Nov-01 4:11 
GeneralRe: Missing Information... Pin
Farooque Khan5-Nov-01 17:54
memberFarooque Khan5-Nov-01 17:54 
GeneralRe: Missing Information... Pin
Daniel Madden16-Feb-02 0:29
memberDaniel Madden16-Feb-02 0:29 
GeneralRe: Missing Information... Pin
Anonymous15-Feb-02 17:55
memberAnonymous15-Feb-02 17:55 
GeneralRe: Missing Information... Pin
Anonymous15-Feb-02 17:55
memberAnonymous15-Feb-02 17:55 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.

| Advertise | Privacy | Terms of Use | Mobile
Web03 | 2.8.150819.1 | Last Updated 1 Nov 2001
Article Copyright 2001 by Farooque Khan
Everything else Copyright © CodeProject, 1999-2015
Layout: fixed | fluid