Posted by Brian Levantine on April 18, 2006 at 18:31:32:
In Reply to: Can't get machine ID posted by Stephen Auerbach on April 18, 2006 at 09:09:39:
I don't know what version of Comet you're using, but for version >= 312, you can use this code:
Length 1.0 & Local IsRemote
Length 37 & Local SessionID$
Length 32 & Local ClientID$
! 1 = Remote, 0 = Local
IsRemote = Asc(Sub(Dstat(Term$), 21, 1))
!Retrieve session ID
Print (GetSessionID)
Input SessionID$ ! Length 37
! Uniquely identifies computer (Never changes)
ClientID$ = Sub(SessionID$, 1, 32)