通过服务器ip得到连接ipSocket s new Socket()s.setSoTimeout(3000)s.connect(new InetSocketAddress(
通过服务器ip得到连接ip
Socket s = new Socket();
s.setSoTimeout(3000);
s.connect(new InetSocketAddress(host.getIp(), 22));
localip = ("" + s.getLocalAddress()).replace("/", "");
