Checking if port is open [closed]

折月煮酒 提交于 2019-12-08 08:03:42

问题


I want to see if port 1878 is open on my Windows Server 2008 R2. I use VPS server, so i talked with the VPS servers company and asked them to open all ports.

When i'm running telnet 172.0.0.1 1878 i get that the port is not reachable. Is there another way to see if the port is open or open it?


回答1:


Use may use software such as nMap to test if a port is working, more specifically if it is closed or open.

You may have to add the -Pn tag incase the port is hidden.

http://nmap.org/

Use the CLI Command:nmap (IP) -p (port)

Or, you may use a web based tool to check it if your VPS is live.

http://www.yougetsignal.com/tools/open-ports/




回答2:


You can use netstat to list out what is used and what isn't. You could also download netcat for windows, which effectively does the same as you trying telnet, it just has a command line option just to test if it can connect. That would be something like:

nc -z 127.0.0.1 1878



来源:https://stackoverflow.com/questions/10901157/checking-if-port-is-open

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!