Get IP Address
How do I get the client ip address, the user who is using the typebot?
19 Replies
There is a lot way, the easy way I use is make a HTTP request to https://api.ipify.org/?format=json
https://typebot.co/get-ip / https://app.typebot.io/typebots/cltrqfewt001e1ygnhu8clvg9/edit
I tried this but it doesn't seem to fetch my ip. I think it fetches my server ip instead. 😅 Did I do it wrong?
If you test on builder sure will show your server ip, you need use the shared flow, the place where the user will use
Ah OK... Let me try it again...
works?
Yeah! Thanks buddy! I finally figured out why it was logging my server ip. That's because I didn't enable the "Execute on client" toggle. 😅
nice question. thanks for the knowledge
I get error 520
@drippingfist where ?
It should work, I added this functionality using a HTTP GET request yesterday
It's working now. I think I had it set to POST not GET. Stuck on how to get it to save the IP as a variable. Or rather I've set is a variable {{ip}} but {{ip}} in a text bubble (or elsewhere) returns nothing.
Editor
Create and publish conversational forms that collect 4 times more answers and feel native to your product
Hi @drippingfist what you mean with is 404'd ?
When I follow the link I see this

@drippingfist Try again
Thanks!
When I execute on server, it works. But when I execute on client it doesn't work.
This is execute on server

It works when the server checks it's IP - GB

Thanks for sharing this - just what I needed as well