【Java】一句话获得你的IP地址

System.out.println(java.net.InetAddress.getLocalHost().getHostAddress());
原文地址:https://www.cnblogs.com/heyang78/p/12106863.html