Java 获取 ip 地址

String ip = InetAddress.getLocalHost().getHostAddress().toString();

 

posted @ 2018-12-11 13:45  宁任翃  阅读(131)  评论(0编辑  收藏  举报