یادداشت های شخصی 🕊️

راه در جهان یکیست و آن راه راستی است، KEEP IT SIMPLE ذهن های آرام موفق‌تر اند

یادداشت های شخصی 🕊️

راه در جهان یکیست و آن راه راستی است، KEEP IT SIMPLE ذهن های آرام موفق‌تر اند

چطور بفهمیم یک پورت باز است یا نه/؟

يكشنبه, ۱ فروردين ۱۴۰۰، ۰۳:۵۱ ب.ظ

https://stackoverflow.com/questions/273159/how-to-determine-if-a-port-is-open-on-a-windows-server


https://stackoverflow.com/questions/273159/how-to-determine-if-a-port-is-open-on-a-windows-server

Assuming that it's a TCP (rather than UDP) port that you're trying to use:

On the server itself, use netstat -an to check to see which ports are listening

165

Just wanted to add that on Windows you can use

netstat -na | find "your_port"
to narrow down the results. You can also filter for LISTENING, ESTABLISHED, TCP and such. Mind it's case sensitive though.

69

If you're checking from the outside, not from the server itself, and you don't want to bother installing telnet (as it doesn't come with the last versions of Windows) or any other software, then you have native PowerShell:

Test-NetConnection -Port 800 -ComputerName 192.168.0.1 -InformationLevel Detailed

42

On a Windows machine you can use PortQry from Microsoft to check whether an application is already listening on a specific port using the following command:

portqry -n 11.22.33.44 -p tcp -e 80

38

I did like that:

netstat -an | find "8080"
from telnet

telnet 192.168.100.132 8080
And just make sure that firewall is off on that machine.

9

Use this if you want to see all the used and listening ports on Windows server:

netstat -an |find /i "listening"
See all open, listening, established ports:

netstat -a
 

موافقین ۰ مخالفین ۰ ۰۰/۰۱/۰۱