获取当前服务器Host
1.JAVApublic void getHost(){ try { InetAddress inetAddr = InetAddress.getLocalHost(); byte[] addr = inetAddr.getAddress(); // Convert to dot representation String...