Socket s = new Socket();
s.setSoTimeout(3000);
s.connect(new InetSocketAddress(host.getIp(), 22));
localip = ("" + s.getLocalAddress()).replace("/", "");
s.setSoTimeout(3000);
s.connect(new InetSocketAddress(host.getIp(), 22));
localip = ("" + s.getLocalAddress()).replace("/", "");