How to find the port at which the particular service is listening
programatically
I know the service name. Is there any option to find the port number at
which service is listening?
PS:
netstat -a -n -o will give IP, PORT, PID
while
tasklist /SVC /FI "SERVICES eq ServiceName" will give, Imagename, PID
How to merge the results of both to get the port of that particular service.
No comments:
Post a Comment