标签:inetaddress.getlocalhost()
System.out.println(InetAddress.getLocalHost().getHostName());
System.out.println(InetAddress.getLocalHost().getHostAddress());
取得本机的用户名和IP
原文地址:http://5618698.blog.51cto.com/5608698/1636196