Windows—CMD_Netstat

Situation

# 想要查詢Windows本機用了哪一些TCP/UDP Port並確認Process ID是多少來看是哪一支程式運行
Check which TCP/UDP ports are being used on Windows.
Identify the process IDs to see which programs are running.”

Solution

[1]
# -a: listening ports
# -n: IP and Ports(Ex: 192.168.1.1:443)
# -o: PID
Win+R > CMD > netstat -ano

[2]
Task Manager(工作管理員) > details(詳細資料) > PID