oTree icon indicating copy to clipboard operation
oTree copied to clipboard

oTree no longer allows retrieving participant's ip address

Open somas95 opened this issue 4 years ago • 2 comments

Since some versions ago oTree lost the capacity to retrieve participant's ip addresses. When it was based on django that was not much of a problem since django provided with some tools for that, but oTree lite is not based on django anymore. That causes issues with experiments in controlled environments where the address of each lab computer is needed. Will oTree support this in the future, or is it any workaround? Hitting 3d party APIs is not ideal, and since oTree Lite provides its own server it's a good place to have that kind of functionality.

somas95 avatar Jul 20 '21 08:07 somas95

Hi, thanks for the suggestion. It's a reasonable request but I don't have plans to add it in the near term. You could take a look at other solutions like these: https://stackoverflow.com/questions/391979/how-to-get-clients-ip-address-using-javascript

oTree-org avatar Jul 20 '21 08:07 oTree-org

The issue with that is that it requires pinging 3d party servers, which can be a concern in a lab environment. Local solutions like using webRTC no longer work as web browsers have been patching that "feature" lately. Thanks anyway for considering it

somas95 avatar Jul 20 '21 08:07 somas95