Search Unity

How to obtain a 'unique machine ID' to help with authentication...

Discussion in 'Scripting' started by dvochin2, Feb 21, 2014.

  1. dvochin2

    dvochin2

    Joined:
    Jul 14, 2012
    Posts:
    84
    Hi all, is there a way to obtain a 'guaranteed unique machine ID' in Unity?

    I would like to authenticate game keys to unique machine IDs if possible.

    Can it be done?

    Thanks!! :)
     
  2. jgodfrey

    jgodfrey

    Joined:
    Nov 14, 2009
    Posts:
    564
  3. jgodfrey

    jgodfrey

    Joined:
    Nov 14, 2009
    Posts:
    564
    One addition... .You didn't mention what device(s) you're targeting. The MAC address would be appropriate for typical computer hardware (PC / MAC / etc), but likely not for mobile devices.
     
  4. dvochin2

    dvochin2

    Joined:
    Jul 14, 2012
    Posts:
    84
    Oooh, many thanks jgodfrey, did the trick! :)
     
  5. Mark-Currie

    Mark-Currie

    Joined:
    Sep 6, 2012
    Posts:
    54
    Tomnnn likes this.
  6. Kirk Clawson

    Kirk Clawson

    Joined:
    Nov 4, 2014
    Posts:
    65
    Please note that a Mac address is specific to the network port, not the computer.
    If my computer has multiple network ports (as my personal machine does - I have 2), if I unplug the network cable, move my PC, and plug my cable back into a different port, my Mac address will be different.
     
  7. Mark-Currie

    Mark-Currie

    Joined:
    Sep 6, 2012
    Posts:
    54