10
Views
6
Comments
Solved
Get the IP
Question

hello everyone, 

I have a problem that I can't solve. The system should also register the IP address from which the exam is started and thus ensure that it does not authorize access to the exam from another IP. how can I get the IP and solve this problem?


Rank: #143
Solution

Hello,

Hope you're doing well!


Most likely, you should have another column in your Exam entity to save the IP address from which the exam is started and then compare to this value to verify the authorization.

You can use the GetIP server action from the HTTPRequestHandler.


This action gets the IP host address of the remote client (IP of the user machine performing the HTTP request).


Hope that this helps you!


Kind regards,

Rui Barradas

Rank: #129

Hi there,


You have a GetIp action in HTTPRequestHandler that you can use for that:



Hope it helps.


Cheers,

João

Rank: #143
Solution

Hello,

Hope you're doing well!


Most likely, you should have another column in your Exam entity to save the IP address from which the exam is started and then compare to this value to verify the authorization.

You can use the GetIP server action from the HTTPRequestHandler.


This action gets the IP host address of the remote client (IP of the user machine performing the HTTP request).


Hope that this helps you!


Kind regards,

Rui Barradas

Rank: #203

Just a remark while using this action is that if you are using a reverse proxy it might not work as expected, because the returned IP will always be the one from the proxy.


Cheers and Regards,
RR :)