问题
The function GetUdpTable() in IP Helper returns a table of MIB_UDPROW.
MIB_UDPROW
struct does not contain any information about the remote address of the UDP connection, the extended variants of GetUdpTable()
only adds the pid
to the return struct.
Is it possible to get the remote address for an active UDP connection using IP Helper (or any other winapi)?
回答1:
No, it is not possible to get the remote port of the UDP connection unless you capture traffic and inspect the packets since UDP is a connectionless protocol.
See: Get Destination Ip/Port of active udp Connection?
来源:https://stackoverflow.com/questions/51981485/remote-address-of-active-udp-connections-in-windows-using-ip-helper