I was create a monitor TCP/UDP connection program and work fine.I'am interesting to add a new field (direction) that show if one connection was established by a local PC or by a Host PC.The informations that I' have are:
Local IP: ex. 192.168.01
Local Port: ex. 1569
Remore IP: ex. 192.168.07
Remote Port: ex. 80
State: ex. CLOSED , LISTENING , SYN_SENT , SYN_RCVD , ESTABLISHED , LAST_ACK , CLOSING , etc..
For retrive the connections I use GetTcpTable and GetUdpTable.Can anyone help me to find the solution ?