D davbeck macrumors regular Original poster Mar 22, 2009 #1 How do I get a unique identifier for a computer with cocoa? Or how can I tell that my application is running on a different machine?
How do I get a unique identifier for a computer with cocoa? Or how can I tell that my application is running on a different machine?
4409723 Suspended Mar 22, 2009 #2 MAC address seems like a good choice here. From the terminal you can do ifconfig en0. You can make a system call and parse that. I don't know the Cocoa API but I assume Apple will have a wrapped that too, potentially here: http://developer.apple.com/document...//apple_ref/doc/uid/TP40001065-CH203-CHDDEDFJ
MAC address seems like a good choice here. From the terminal you can do ifconfig en0. You can make a system call and parse that. I don't know the Cocoa API but I assume Apple will have a wrapped that too, potentially here: http://developer.apple.com/document...//apple_ref/doc/uid/TP40001065-CH203-CHDDEDFJ
M MrFusion macrumors 6502a Mar 22, 2009 #3 Wes said: MAC address seems like a good choice here. From the terminal you can do ifconfig en0. You can make a system call and parse that. I don't know the Cocoa API but I assume Apple will have a wrapped that too, potentially here: http://developer.apple.com/document...//apple_ref/doc/uid/TP40001065-CH203-CHDDEDFJ Click to expand... A MAC address can be changed. Don't use it for security applications.
Wes said: MAC address seems like a good choice here. From the terminal you can do ifconfig en0. You can make a system call and parse that. I don't know the Cocoa API but I assume Apple will have a wrapped that too, potentially here: http://developer.apple.com/document...//apple_ref/doc/uid/TP40001065-CH203-CHDDEDFJ Click to expand... A MAC address can be changed. Don't use it for security applications.
4409723 Suspended Mar 22, 2009 #4 http://developer.apple.com/samplecode/GetPrimaryMACAddress/listing1.html There's a little code. I guess you could also get the serial number: http://discussions.apple.com/thread.jspa?threadID=1906402&tstart=105
http://developer.apple.com/samplecode/GetPrimaryMACAddress/listing1.html There's a little code. I guess you could also get the serial number: http://discussions.apple.com/thread.jspa?threadID=1906402&tstart=105