主机端口扫描_主机端口扫描java

主机端口扫描_主机端口扫描java

JAVA中如何判断某主机端口是否打开?????

Socket

client

=

null;

try{

client

=

new

Socket(IP,

port);

System.out.println("端口已开放");

client.close();

}catch(Exception

236 0 2023-02-17 端口扫描