java 读取当前IP地址

java 读取当前IP地址


 InetAddress address=InetAddress.getLocalHost();

 System.out.println(address.getHostAddress());

你可能感兴趣的:(java 读取当前IP地址)