Windows 中使用 IP Helper 的活动 UDP 连接的远程地址

Remote address of active UDP connections in Windows using IP Helper

函数GetUdpTable() in IP Helper returns a table of MIB_UDPROW

MIB_UDPROW 结构不包含有关 UDP 连接的远程地址的任何信息,GetUdpTable() 的扩展变体仅将 pid 添加到 return 结构.

是否可以使用 IP Helper(或任何其他 winapi)获取活动 UDP 连接的远程地址?

不,除非捕获流量并检查数据包,否则无法获取 UDP 连接的远程端口,因为 UDP 是无连接协议。

参见:Get Destination Ip/Port of active udp Connection?