H h725 Active Member Licensed User Longtime User Mar 14, 2016 #1 Hello B4X community ! I would like to know how I can establish a connection to the RDC-Server with a password request or something like that. At the moment, once a user has the app (which stores the ip-adress and port) he can access the server. Is there a way to influence the connection ? First I thought of clientside password request OR serverside blacklist / whitelist with the ids of the clients.
Hello B4X community ! I would like to know how I can establish a connection to the RDC-Server with a password request or something like that. At the moment, once a user has the app (which stores the ip-adress and port) he can access the server. Is there a way to influence the connection ? First I thought of clientside password request OR serverside blacklist / whitelist with the ids of the clients.
Erel B4X founder Staff member Licensed User Longtime User Mar 14, 2016 #2 Switch to jRDC2 and send the client id as a URL parameter. You can then get it in RDCHandler. Upvote 0
H h725 Active Member Licensed User Longtime User Mar 15, 2016 #3 Thank you very much for this fast response. Upvote 0
H h725 Active Member Licensed User Longtime User Mar 18, 2016 #4 Could you give me a snippet or link how to do this (client id as a URL parameter and handling it)? Kind regards Upvote 0
Could you give me a snippet or link how to do this (client id as a URL parameter and handling it)? Kind regards
Erel B4X founder Staff member Licensed User Longtime User Mar 20, 2016 #5 You need to make two updates: 1. Update DBRequestManager.SendJob and add the user id after the method parameter: Code: j.PostBytes(link & "?method=" & Method & "&userid=" & Main.UserId , Data) 2. In RDCHandle: Code: Dim method As String = req.GetParameter("method") Dim userid As String = req.GetParameter("userid") Upvote 0
You need to make two updates: 1. Update DBRequestManager.SendJob and add the user id after the method parameter: Code: j.PostBytes(link & "?method=" & Method & "&userid=" & Main.UserId , Data) 2. In RDCHandle: Code: Dim method As String = req.GetParameter("method") Dim userid As String = req.GetParameter("userid")
H h725 Active Member Licensed User Longtime User Mar 20, 2016 #6 Great. It works perfect. Thanks Upvote 0