摘要: InetAddress addr = InetAddress.getLocalHost(); ip=addr.getHostAddress().toString;//获得本机IP address=addr.getHostName()toString;//获得本机名称 阅读全文
posted @ 2015-05-14 12:41 flay 阅读(297) 评论(0) 推荐(0) 编辑