I am searching for the unique Identifier of the device i.e. PC. I have looked to many links on Stack Overflow and other websites and found to generate UUID instead of mac id. But I also found that UUID may not be associated with some motherboards and may not work sometimes.
I have implemented the MAC ID as unique identifier but now I think this may not work very accurately as user's laptop may be sometime connected on LAN, wifi or dongle. And at every time I need to know unique identifier of the machine. Also I am concerned when I need unique identifier when user is connected using Virtual Box.