Get user IP address, save in session state

Hi!

** No rush to respond to my post **

I saw this fix for getting your user’s IP address–– does this also work when hosted by streamlit?

I can use geocoder.ip(‘me’) locally, but that doesn’t to seem work right when the app is hosted.

Is there a way I can make the aforementioned edit and add the ip to the session state? That would be a good fix for me (open to any other ideas).

Thanks,
Alex

2 Likes

I’m looking for the exact same thing!

Bump on this!

Hi @akor128 @thiagobellotto, do you guys have the solution ? I have came across the same issue, couldn’t resolve it.

Unfortunately not. Still waiting for some help from anyone from Streamlit.

1 Like

@thiagobellotto ohkay, thanks