檢查 Windows port 是否對外開放 ? 要檢查 Windows 上的某個埠(port)是否對外開放,可以使用以下幾種方法: --- ### ✅ 方法一:使用 PowerShell 測試遠端連線 ```powershell Test-NetConnection -ComputerName <你的 IP 或網域名稱> -Port <埠號> ``` 例如: ```powershell Test-NetConnection -ComputerName 8.8.8.8 -Port 53 ``` 這會顯示該埠是否可以從你的電腦連線到指定主機。 --- ### ✅ 方法二:使用 `netstat` 查看本機開放的埠 ```cmd netstat -an | find "LISTEN" ``` 這會列出所有正在監聽的埠。你可以檢查是否有你關心的埠在監聽中。 --- ### ✅ 方法三:使用防火牆檢查規則 ```powershell Get-NetFirewallRule | Where-Object { $_.Direction -eq "Inbound" -and $_.Action -eq "Allow" } ``` 這可以幫你確認是否有允許某個埠的防火牆規則。 --- ### ✅ 方法四:使用外部工具檢查(從外部網路) 你可以使用網站如: - https://www.yougetsignal.com/tools/open-ports/ - https://portchecker.co/ 輸入你的公網 IP 和埠號,檢查是否對外開放。 --- 你想檢查的是哪個埠?是在本機還是遠端伺服器?我可以幫你更具體地操作。