# 检查端口连通性
test-netconnection 192.168.1.57 -port 5000
操作界面:
运行效果:
test-netconnection -traceroute www.qq.com
Test-NetConnection
[[-ComputerName] <String>]
[-TraceRoute]
[-Hops <Int32>]
[-InformationLevel <String>]
[<CommonParameters>]
test-connection www.qq.com
test-connection 114.114.114.114
test-connection 223.5.5.5 -count 8
Test-Connection
[-TargetName] <string[]>
[-Ping]
[-IPv4]
[-IPv6]
[-ResolveDestination]
[-Source <string>]
[-MaxHops <int>]
[-Count <int>]
[-Delay <int>]
[-BufferSize <int>]
[-DontFragment]
[-TimeoutSeconds <int>]
[-Quiet]
[<CommonParameters>]
- 优先使用
Test-NetConnection
:如果需要测试 TCP 端口、路由跟踪或获取详细网络信息(如延迟、MTU), Test-NetConnection
是更强大且现代的选择。 - 使用
Test-Connection
:如果仅需快速判断主机是否可达(ICMP),且不需要 TCP 或路由信息, Test-Connection
更简单直接。
原文始发于微信公众号(像梦又似花):除了telnet,ssh你还会用其他方法调试端口吗?
免责声明:文章中涉及的程序(方法)可能带有攻击性,仅供安全研究与教学之用,读者将其信息做其他用途,由读者承担全部法律及连带责任,本站不承担任何法律及连带责任;如有问题可邮件联系(建议使用企业邮箱或有效邮箱,避免邮件被拦截,联系方式见首页),望知悉。
- 左青龙
- 微信扫一扫
-
- 右白虎
- 微信扫一扫
-
评论