首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 开发语言 > 编程 >

经过服务器ip得到连接ip

2012-12-19 
通过服务器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("/", "");

热点排行