from Flask import request print(request.remote_addr) # request.remote_addr is the ip address of the user, you can do whatever you # want with it, i recommend printing it before returning a value.