Closed Danila24ru closed 7 years ago
UPD: I converted timestamp in this debug to time, there difference in 1 hour, it's uses different time?
GenerateConnectToken automatically converts the machine's local time to a Unix timestamp - which it does by using DateTime.Now, converting that to a Universal time via ToUniversalTime, and then subtracting a new DateTime( 1970, 1, 1 ) and getting the total seconds. I'd say try logging the results of DateTime.Now.ToUniversalTime, both on your Windows machine and on your Linux machine, and comparing the two. Also check the system clocks and make sure they're correct.
Okay, it's works, I just made asp.net server with token generator on linux.
So, I getting error on Linux server when connecting from windows client. What's wrong?
C#factory.GenerateConnectToken(ipEndPoint,30, 10, 1, localClientID, new byte[256])
I seeBut where I should use it?