查看本機開了那些 Port ?

How can I quickly find listening/open ports on my computer ? 
 
You can use the NETSTAT command to quickly see all the used and listening ports on your computer. Note it is not a complete substitute for a port scanning tool. If you'd like to have your computer remotely scanned for open ports use our Security Scan instead.

To see a list of listening ports, open Command Prompt and type:

C:> netstat -an |find /i "listening"

You can change "listening" to "established" to see what ports your computer actually communicates with.


In Windos XP and Win2k3 Server you can use the -O switch with the NETSTAT command to also get a list of all the owning process ID associated with each connection:

C:> netstat -ao |find /i "listening"

To see all open, closing, established and listening ports, simply use:

C:> netstat -a (or netstat -ao in XP/Win2k3)

You can also make the netstat command refresh periodically by adding a number of seconds at the end, for example, to make it refresh every 5 seconds, use something like:

C:> netstat -an 5


Notes:
The netstat command has a number of other useful command line parameters, you can see short description of all of them using: netstat /?
Also, you might want to perform an outside port scan to see what ports are accepting connections according to an external machine. See: SG Security Scan
You can see process identifiers using the following command at the command prompt: tasklist and tasklist /svc
 

評論: 108 | 引用: 0 | 閱讀: 31128
tennille [ 2019-03-20 20:57 網址 | 回覆 | 編輯 刪除 ]
該內容只有管理員可見
yuankai71 [ 2019-03-21 00:54 網址 | 回覆 | 編輯 刪除 ]
該內容只有管理員可見
Lisa [ 2019-03-21 02:53 網址 | 回覆 | 編輯 刪除 ]
該內容只有管理員可見
qiuling79 [ 2019-03-21 12:28 網址 | 回覆 | 編輯 刪除 ]
該內容只有管理員可見
阿宏 [ 2019-04-02 14:55 網址 | 回覆 | 編輯 刪除 ]
該內容只有管理員可見
Katina [ 2019-04-25 10:47 網址 | 回覆 | 編輯 刪除 ]
該內容只有管理員可見
Sarah [ 2019-04-27 16:04 網址 | 回覆 | 編輯 刪除 ]
該內容只有管理員可見
wuyan37 [ 2019-05-04 14:06 網址 | 回覆 | 編輯 刪除 ]
該內容只有管理員可見
Joseph [ 2019-05-13 07:39 網址 | 回覆 | 編輯 刪除 ]
該內容只有管理員可見
Rodolfo [ 2019-05-15 02:01 網址 | 回覆 | 編輯 刪除 ]
該內容只有管理員可見
發表評論
暱 稱: 密 碼:
網 址: E - mail:
驗證碼: 驗證碼圖片
內 容:
本網誌收集各類網路公開的文件,以便於本人和眾多網友們檢索查詢,所有轉載文件之著作所有權皆為原作者或及其發表公司所有,若有不宜刊登之文件,一經告知,本網誌立即下架