IPGlobalProperties IPGproperties = IPGlobalProperties.GetIPGlobalProperties();
TcpConnectionInformation[] connections = IPGproperties.GetActiveTcpConnections();
foreach (TcpConnectionInformation tcp in connections)
{
//Displaying TCP connection informations
StringBuilder sb = new StringBuilder();
sb.Append("Local endpoint:t"+tcp.LocalEndPoint.Address.ToString());
sb.Append("nRemote endpoint:t"+ tcp.RemoteEndPoint.Address.ToString());
sb.Append("nState:tt"+ tcp.State.ToString());
MessageBox.Show(sb.ToString(),"TCP connection status");
}
0.00 (0%) 0 votes






