import java.net.InetAddress;
InetAddress inetAddress = InetAddress.getLocalHost();
String ipStr = inetAddress.getHostAddress() // ip 地址
import java.net.InetAddress;
InetAddress inetAddress = InetAddress.getLocalHost();
String ipStr = inetAddress.getHostAddress() // ip 地址