by Nick Johnson (5 Submissions)
Category: Windows API Call/Explanation
Compatability: Visual Basic 3.0
Difficulty: Advanced
Date Added: Wed 3rd February 2021
Rating: (46 Votes)
This is a complete API call replacement for the dos Netstat command. The example will show all open connections, and the API calls are encapsulated in a Class module that can also retrieve all listening ports on the local computer.
This module and demonstration project also allow you to kill TCP connections - in the demonstration right click on a current connection...
Includes caching DNS lookup code to get the domain names of the servers you are connecting to! Credit to Michael Tutty for the original DNS client code.
Download See all open winsock connections API replacement for Netstat (12 KB)