Share feedback, ideas and get community help

Updated 4 months ago

Get IP Address

At a glance

The post is about how to get the client IP address of the user using a Typebot. Community members suggest using an HTTP request to https://api.ipify.org/?format=json or a Typebot feature to fetch the IP address. However, some community members faced issues where the IP address fetched was the server's IP instead of the client's. They resolved this by enabling the "Execute on client" toggle in Typebot. There were also some discussions around saving the IP address as a variable and issues with a specific Typebot link. Overall, the community members provided suggestions and troubleshooting steps to help the original poster get the client IP address.

Useful resources
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