Forum: Windows

Here is a forum space for SDK: Windows.

213. Cannot Log in to personal dev proptt2 server

In the SDK you provide a PTTClient object to start to connect and login.
I changed the sample code a bit, to be able to call the connect method overload which accepts the server IP address and port.
 
int ret = client.connect(SERVER_IP, SERVER_PORT, userID, SHA512Hash(password), "", 0, new PTTClientEventHandler());
 
I used these parameters:
 
        private const string LICENSE = "35D716D69DB4";
        private const string SERVER_IP = "51.124.81.193";
        private const int SERVER_PORT = 40443;
 
I tried using both the PurchaseID and License Verification Key as LICENSE (found in the Setup/System information in our dev installation) but I got the same error message each time:
 
'HelloPTT.exe' (CLR v4.0.30319: HelloPTT.exe): Loaded 'C:\Projects\Peru\HelloPTT-windows6\bin\ProPTTSDKCLR.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
OnDisconnected reason : 4
ret : 401
 
The 401 error seems to be an unauthorized error – but I have no other idea on what to put.
I did a reset of my password and tried to log in using the iPhone app to be sure about the password – and this works.
 
Could you tell me how I can get the Windows Login to work (maybe I am passing the wrong parameters?)

Mar 15 '21 at 15:33 (GMT0) created by Olivier Vanekem

 
Dear Olivier.
1. About port
In http://dev.proptt2.com/sdk-client-ref3-pttclient.html#connect
The port must be 8080 or 8088
2. About license key
In http://dev.proptt2.com/sdk-client-ref3-pttclient.html#initialize
You must generate it.
Regards,
ProPTT2

Mar 16 '21 at 01:29 (GMT0) created by ProPTT2 dev