Google Analytics

Thursday, February 11, 2016

ADF get Terminal Id/ Machine Id

public static String getTerminalName() {
        String sTerminalName = null;
        try {
            sTerminalName = InetAddress.getLocalHost().getHostName();
        } catch (UnknownHostException e) {
            e.printStackTrace();
        }
 
        return sTerminalName;
    }

No comments:

Post a Comment