Static void ListAvailableTCPPort(ref ArrayList usedPort) ", TCPInfo.LocalEndPoint, TCPInfo.RemoteEndPoint, TCPInfo. Using your example (with an extra Console.WriteLine in there using System Problem is, the results is different from used tcp port listed in TCPview(Protocol-TCP, Local port).īy the way, i do know that this list used TCP port at the EXACT time its called.īut it does also show listeners ( ipGlobalProperties.GetActiveTcpListeners()) which may or may not be closed down. TCPView Active socket command-line viewer. ShareEnum Scan file shares on your network and view their security settings to close security holes. TcpConnectionInformation TCPInfo = (TcpConnectionInformation)myEnum.Current The PsTools suite includes command-line utilities for listing the processes running on local or remote computers, running processes remotely, rebooting computers, dumping event logs, and more. TcpConnectionInformation tcpConnInfoArray = ipGlobalProperties.GetActiveTcpConnections() Static void ListUsedTCPPort(ref ArrayList usedPort) ![]() If you are the original developer, notify me and ill put credits where due.) //List used tcp port It is modified code i found in this forum(forgot exactly where i got it. It's similar to the Windows Netstat command-line utility, but, in some respects, a good deal more convenient and useful. ![]() IPEndPoint TCPInfo = (IPEndPoint)myEnum.Current TCPView gives admins a succinct and informative way to monitor network endpoints and processes in desktop and server systems. IEnumerator myEnum = tcpConnInfoArray.GetEnumerator() IPEndPoint tcpConnInfoArray = ipGlobalProperties.GetActiveTcpListeners() ![]() IPGlobalProperties ipGlobalProperties = IPGlobalProperties.GetIPGlobalProperties() ![]() Used modified code from jro static void ListUsedTCPPort(ref ArrayList usedPort)
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |