如何测试某个tcp端口是否可以联通
首先端口分tcp、udp之分,所以同一个端口号还有tcp协议和udp协议之分。 我们一般最常见的工具是telnet,但是telnet使用的是tcp协议,换句话说telnet只能检测tcp的这个端口打开了没。方法很简单,假设我们要看192.192.193.211这个IP的tcp22端口是否打开,则运行telnet192.192.193.21122来查看,如果出现下列信息,则表示该端口已打开。如果出现下面信息,表是该端口未打开。除了telnet以外,还有一个命令nc也可查看端口是否打开。同样查看tcp22端口是否打开,可以运行nc-z192.192.193.21122,打开着就会出现下列信息:那如果想要查看udp22端口是否打开,用什么可以做到呢?nc也可以噢~运行nc–uz192.192.193.21122,打开这就会出现这些信息:如果查询的端口没有打开,会出现以下输出:nc 还可以一次性查看多了端口

判断端口通不通的几种方法
判断端口通不通的几种方法 1、使用telnet判断telnet是windows标准服务,可以直接用;如果是linux机器,需要安装telnet.用法: telnet ip port1)先用telnet连接不存在的端口[root@localhost ~]# telnet 10.0.250.3 80Trying 10.0.250.3...telnet: connect to address 10.0.250.3: Connection refused #直接提示连接被拒绝2)再连接存在的端口[root@localhost ~]# telnet localhost 22Trying ::1...Connected to localhost. #看到Connected就连接成功了Escape character is '^]'.SSH-2.0-OpenSSH_5.3aProtocol mismatch.Connection closed by foreign host.2、使用ssh判断ssh是linux的标准配置并且最常用,可以用来判断端口吗?用法: ssh -v -p port username@ip-v 调试模式(会打印日志).-p 指定端口username可以随意1)连接不存在端口[root@localhost ~]# ssh 10.0.250.3 -p 80ssh: connect to host 10.0.250.3 port 80: Connection refused[root@localhost ~]# ssh 10.0.250.3 -p 80 -vOpenSSH_5.3p1, OpenSSL 1.0.1e-fips 11 Feb 2013debug1: Reading configuration data /etc/ssh/ssh_configdebug1: Applying options for *debug1: Connecting to 10.0.250.3 [10.0.250.3] port 80.debug1: connect to address 10.0.250.3 port 80: Connection refused ssh: connect to host 10.0.250.3 port 80: Connection refused
1、使用telnet判断 telnet是windows标准服务,可以直接用;如果是linux机器,需要安装telnet.用法: telnet ip port1)先用telnet连接不存在的端口[root@localhost ~]# telnet 10.0.250.3 80Trying 10.0.250.3...telnet: connect to address 10.0.250.3: Connection refused #直接提示连接被拒绝2)再连接存在的端口[root@localhost ~]# telnet localhost 22Trying ::1...Connected to localhost. #看到Connected就连接成功了Escape character is '^]'.SSH-2.0-OpenSSH_5.3aProtocol mismatch.Connection closed by foreign host.2、使用ssh判断ssh是linux的标准配置并且最常用,可以用来判断端口吗看用法: ssh -v -p port username@ip-v 调试模式(会打印日志).-p 指定端口username可以随意1)连接不存在端口[root@localhost ~]# ssh 10.0.250.3 -p 80ssh: connect to host 10.0.250.3 port 80: Connection refused[root@localhost ~]# ssh 10.0.250.3 -p 80 -vOpenSSH_5.3p1, OpenSSL 1.0.1e-fips 11 Feb 2013debug1: Reading configuration data /etc/ssh/ssh_configdebug1: Applying options for *debug1: Connecting to 10.0.250.3 [10.0.250.3] port 80.debug1: connect to address 10.0.250.3 port 80: Connection refusedssh: connect to host 10.0.250.3 port 80: Connection refused2)连接存在的端口[root@localhost ~]# ssh ... -pa^]^C[root@localhost ~]# ssh ... -p -vOpenSSH_.p, OpenSSL ..e-fips Febdebug: Reading configuration data /etc/ssh/ssh_configdebug: Applying options for *debug: Connecting to ... [...] port .debug: Connection established.debug: permanently_set_uid: /debug: identity file /root/.ssh/identity type -debug: identity file /root/.ssh/identity-cert type -debug: identity file /root/.ssh/id_rsa type -debug: identity file /root/.ssh/id_rsa-cert type -debug: identity file /root/.ssh/id_dsa type -debug: identity file /root/.ssh/id_dsa-cert type -a^C不用-v选项也可以咯3、使用wget判断wget是linux下的下载工具,需要先安装.用法: wget ip:port1)连接不存在的端口[root@localhost ~]# wget ...:---- ::--Connecting to ...:... failed: Connection refused.2)连接存在的端口[root@localhost ~]# wget ...:---- ::--Connecting to ...:... connected. HTTP request sent, awaiting response...

查看远程服务器的某一端口是否开启
工具/原料nctelnet方法/步骤1、首先端口分tcp、udp之分,所以同一个端口号还有tcp协议和udp协议之分。2、最常见的工具是telnet,但是telnet使用的是tcp协议,换句话说telnet只能检测tcp的这个端口打开了没。3、假设要看192.192.193.211这个IP的tcp 22端口是否打开,则运行telnet 192.192.193.211 22 来查看,如果出现下列信息,则表示该端口已打开。4、如果出现下面信息,表是该端口未打开。5、除了telnet以外,还有一个命令nc也可查看端口是否打开。6、同样查看tcp 22端口是否打开,可以运行nc -z 192.192.193.211 22,打开着就会出现下列信息:7、那如果想要查看udp 22 端口是否打开,运行 nc –uz 192.192.193.211 22, 打开这就会出现这些信息:8、如果查询的端口没有打开,会出现以下输出:8、nc 还可以一次性查看多了端口,例如:
以oracle数据库服务为例,oracle正常运行时1521是打开的。假设该服务器的ip是10.25.101.234。可在windows环境运行命令行窗口然后输入“telnet 10.25.101.234 1521”来判断1521端口是否开启。回车后如果命令行窗口不显示任何信息说明1521端口处于开启状态。如果1521端口处于关闭状态,命令行窗口会显示连接失败如果提示“不是内部或外部命令”则需要在“程序和功能”中进行设置。在控制面板中选择“程序和功能”,在“程序和功能”界面选择“打开或关闭Windows功能”。在弹出的“windows功能”窗口中将Telnet服务器和Telnet客户端勾选并保存设置。设置完成后需要重新打开一个命令行窗口运行telnet命令,设置前打开的命令窗口运行telnet是无效的。
1、安装telnet。我的win7下就没有telnet,在cmd下输入telnet提示没有该命令。于是我们进入控制面板---->程序---->打开或关闭windows功能。然后等一段时间,在出来的对话框把telnet客户端和telnet服务器勾选上,其他的不用管,然后点击确定。这样就安装好了telnet组件了。 2、 下面开始测试某个端口是否开启,比如我测的是192.168.3.42的2121这个端口。在cmd下输入start /min telnet 192.168.3.42 2121之后会出现一个窗口,是最小化的,你等一会,如果窗口自动关闭了,说明端口是关闭的或主机ping不通,反之端口开放.比如这个2121端口是开放的,就出现如图所以的窗口,否则窗口关闭。3、你可以用自己的机子做实验.在CMD下输入netstat -anp tcp可以查看当前主机tcp开放了哪些端口. 最后 ping命令是不能检测端口,只能检测你和相应IP是否能连通.
使用端口扫描工具扫一下就出来了,如果服务器是通过路由连接到INTERNET上来的,要注意在路由上设备一个端口映射
window服务器下用TelnetIP Address Port Number 命令,你试试吧。希望对你有帮助。

判断端口通不通的几种方法
1、使用telnet判断 telnet是windows标准服务,可以直接用;如果是linux机器,需要安装telnet.用法: telnet ip port1)先用telnet连接不存在的端口[root@localhost ~]# telnet 10.0.250.3 80Trying 10.0.250.3...telnet: connect to address 10.0.250.3: Connection refused #直接提示连接被拒绝2)再连接存在的端口[root@localhost ~]# telnet localhost 22Trying ::1...Connected to localhost. #看到Connected就连接成功了Escape character is '^]'.SSH-2.0-OpenSSH_5.3aProtocol mismatch.Connection closed by foreign host.2、使用ssh判断ssh是linux的标准配置并且最常用,可以用来判断端口吗?用法: ssh -v -p port username@ip-v 调试模式(会打印日志).-p 指定端口username可以随意1)连接不存在端口[root@localhost ~]# ssh 10.0.250.3 -p 80ssh: connect to host 10.0.250.3 port 80: Connection refused[root@localhost ~]# ssh 10.0.250.3 -p 80 -vOpenSSH_5.3p1, OpenSSL 1.0.1e-fips 11 Feb 2013debug1: Reading configuration data /etc/ssh/ssh_configdebug1: Applying options for *debug1: Connecting to 10.0.250.3 [10.0.250.3] port 80.debug1: connect to address 10.0.250.3 port 80: Connection refusedssh: connect to host 10.0.250.3 port 80: Connection refused2)连接存在的端口[root@localhost ~]# ssh ... -pa^]^C[root@localhost ~]# ssh ... -p -vOpenSSH_.p, OpenSSL ..e-fips Febdebug: Reading configuration data /etc/ssh/ssh_configdebug: Applying options for *debug: Connecting to ... [...] port .debug: Connection established.debug: permanently_set_uid: /debug: identity file /root/.ssh/identity type -debug: identity file /root/.ssh/identity-cert type -debug: identity file /root/.ssh/id_rsa type -debug: identity file /root/.ssh/id_rsa-cert type -debug: identity file /root/.ssh/id_dsa type -debug: identity file /root/.ssh/id_dsa-cert type -a^C不用-v选项也可以咯3、使用wget判断wget是linux下的下载工具,需要先安装.用法: wget ip:port1)连接不存在的端口[root@localhost ~]# wget ...:---- ::--http://.../Connecting to ...:... failed: Connection refused.2)连接存在的端口[root@localhost ~]# wget ...:---- ::--http://...:/Connecting to ...:... connected. HTTP request sent, awaiting response...
"端口"是英文port的意译,可以认为是设备与外界通讯交流的出口。端口可分为虚拟端口和物理端口,其中虚拟端口指计算机内部或交换机路由器内的端口,不可见。例如计算机中的80端口、21端口、23端口等。物理端口又称为接口,是可见端口,计算机背板的rj45网口,交换机路由器集线器等rj45端口。电话使用rj11插口也属于物理端口的范畴。

怎样测试某个端口是否打开
首先端口分tcp、udp之分,所以同一个端口号还有tcp协议和udp协议之分。 我们一般最常见的工具是telnet,但是telnet使用的是tcp协议,就是说telnet只能检测tcp的这个端口打开了没。假设我们要看192.192.193.211这个IP的tcp 22端口是否打开,则运行telnet 192.192.193.211 22 来查看,如果出现黑色窗口闪烁鼠标,则表示该端口已打开。如果出现失败该端口未打开。除了telnet以外,还有一个命令nc也可查看端口是否打开。同样查看tcp 22端口是否打开,可以运行nc -z 192.192.193.211 22,打开着就会出现成功单词:失败单词表示不通。 如果想要查看udp 22 端口是否打开,用什么可以做到呢?nc 也可以噢~ 运行 nc –uz 192.192.193.211 22, 也有成功或者失败的英文单词

本文由 在线网速测试 整理编辑,转载请注明出处,原文链接:https://www.wangsu123.cn/news/47800.html。