I'm creating php examination project in which requirement is that every user can give exam only once, for that i am checking ip address of user for uniqueness. I'm using this javascript for fetching ip address
$.get("https://ipinfo.io/", function(response) {
}, "jsonp");
but in it all devices connected in one wi-fi network returning same ip address which is problematic, is there any other option available to get each device's ip address uniquely even though they're connected on same network. mac address isn't the solution for me in here.
Thanks in advance