Using last user ip adress as device tracker

I am using the home assistant android app, but since the recent update, enabling location is required to use the home wifi name (and I don’t want to enable it). I am using a self hosted instance.

Is there any way to retrieve the IP address used by a user to connect to hass ?
This would enable me to know the last location (wifi or vpn) of the user, and trigger automations without any requirements on the device side.

Thank you