jsk 图片同步
This commit is contained in:
parent
59e769549e
commit
35fa8cc00d
|
|
@ -20,7 +20,7 @@ public class GreenImageInfo implements java.io.Serializable {
|
|||
String serverIP="";
|
||||
try{
|
||||
InetAddress ip = InetAddress.getLocalHost();
|
||||
serverIP= ip.getHostAddress();
|
||||
serverIP= ip.getHostName();
|
||||
System.out.println("Server IP: " + serverIP);
|
||||
} catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
|
|
|
|||
Loading…
Reference in New Issue