I use Ui-control with connect messages to store the ip and socket id of clients.
if you look at debug from a button click you get -
object
payload: 1645370401433
event: object
clientX: 882
clientY: 864
bbox: array[4]
socketid: "2ldTknYmnRL2Cv_IAAOd"
_msgid: "47971bd610c4dabb"
You can use this to lookup the ip ?