When running Windows, operating system tools allow you to find the mapping of a open TCP/UDP ports to a running service or application.
Netstat: Displays protocol statistics and current TCP/IP network connections
Use
> netstat /?
to find information about the options and usage for the command. To find all connections and listening ports, use:
> netstat -abo
To list the executables used in creating those connections, and finding the process ID for each connection. Using these commands, you can find all the open ports and process IDs listening on the system you are executing the netstat.
Task manager: Matching process IDs to processes
After obtaining the process ID from netstat, Windows Task Manager can be used to find out what those processes are. First add the PID column to the Task Manager processes list. After that, look for the process IDs you are interested in and found from netstat.
Tasklist: Getting service executable information
svchost.exe is a common service found in the task manager process list and sometimes there are several instances.
If you are using XP Professional, Vista, or Windows 7, to find more information on svchost, use the following command
tasklist /SVC
to find the executable name, process ID, and possibly some service information details.