KaMeR How do I cheat?
Reputation: 0
Joined: 11 Aug 2009 Posts: 6
|
Posted: Mon Jun 13, 2011 8:08 am Post subject: [VB.NET]Active connections |
|
|
i want to get active connections and from which executable it comes is it possible?
here is the code i got, its working but shows only IPs and PORTs.
| Code: | Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim IPGproperties As IPGlobalProperties = IPGlobalProperties.GetIPGlobalProperties()
Dim connections As TcpConnectionInformation() = IPGproperties.GetActiveTcpConnections()
For Each tcp As TcpConnectionInformation In connections
Dim it As New ListViewItem
it = ListView1.Items.Add(tcp.LocalEndPoint.Address.ToString() + ":" + tcp.LocalEndPoint.Port.ToString())
it.SubItems.Add(tcp.RemoteEndPoint.Address.ToString() + ":" + tcp.RemoteEndPoint.Port.ToString())
Next
End Sub |
|
|