So I have a Raspberry PI that runs a small web interface. Users connect to the web interface and can control some stuff. What I'm trying to do is get the visitor's IP and display it on their end. I've tried a few things and I always just have the public IP of the RPI showing.
Everyone connecting to the web interface is on the same network, I'm trying to get their 10.x.x.x IP address and show that. I've tried using Python/JS using Flask, but I can't seem to get it to work. Any help would be great!