Name of program using the port
Heyy all..
i was wondering...
when i try to connect using my application (using winsock) through a port which is already engaged to another program on my computer, i get an error message saying "Port already in use" or something like that. Pretty normal.
Now, if i handle this error...is there any way later on by which i can get the name of the program using this port???
Re: Name of program using the port
Re: Name of program using the port
I know you can get it using Netstat, so there must be some programmatical way of getting it - but I don't know what it is.
Re: Name of program using the port
What I do is ShellExecute the cmd.exe and pass netstat -ano and a redirect output to a textfile. Then I read it back in as a basic file.