public static boolean isServer() throws Exception { boolean isServer = false; InetAddress IP = InetAddress.getLocalHost(); try { if (IP.getHostAddress().toString().equals("54.186.249.201") || IP.getHostAddress().toString().equals("172.31.40.246") || IP.getHostAddress().toString().equals("128.199.237.142") || IP.getHostAddress().toString().equals("saracourierservice.tk")) { isServer = true; } } catch (Exception ex) { throw ex; } return isServer; }