Get a unique identifier Using java.rmi.dgc.VMID
public class Main { public static void main(String arg[]) { System.out.println(new java.rmi.dgc.VMID().toString()); } } //4129eb1d7419293f:-148094f1:11fc9788387:-8000