public static String getTerminalName() {
String sTerminalName = null;
try {
sTerminalName = InetAddress.getLocalHost().getHostName();
} catch (UnknownHostException e) {
e.printStackTrace();
}
return sTerminalName;
}
No comments:
Post a Comment