IPGlobalProperties network = IPGlobalProperties.GetIPGlobalProperties();

TcpConnectionInformation[] connections = network.GetActiveTcpConnections();

dataGridView1.DataSource = connections;

Advertisements