Share feedback, ideas and get community help

Updated 2 months ago

Get IP Address

How do I get the client ip address, the user who is using the typebot?
3
M
N
d
21 comments
There is a lot way, the easy way I use is make a HTTP request to https://api.ipify.org/?format=json
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...
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
@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.
Hi @drippingfist what you mean with is 404'd ?
When I follow the link I see this
Attachment
image.png
@drippingfist Try again
When I execute on server, it works. But when I execute on client it doesn't work.
This is execute on server
Attachment
image.png
It works when the server checks it's IP - GB
Attachment
image.png
Thanks for sharing this - just what I needed as well
Add a reply
Sign up and join the conversation on Discord