T
Typebot•3mo ago
Nidzam

Get IP Address

How do I get the client ip address, the user who is using the typebot?
19 Replies
Nidzam
Nidzam•3mo ago
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?
Michaelvips
Michaelvips•3mo ago
If you test on builder sure will show your server ip, you need use the shared flow, the place where the user will use
Nidzam
Nidzam•3mo ago
Ah OK... Let me try it again...
Michaelvips
Michaelvips•3mo ago
works?
Nidzam
Nidzam•3mo ago
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. 😅
dig
dig•3mo ago
nice question. thanks for the knowledge
drippingfist
drippingfist•3mo ago
I get error 520
Michaelvips
Michaelvips•3mo ago
@drippingfist where ?
JohnSmith
JohnSmith•3mo ago
It should work, I added this functionality using a HTTP GET request yesterday
drippingfist
drippingfist•3mo ago
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.
drippingfist
drippingfist•3mo ago
Editor
Create and publish conversational forms that collect 4 times more answers and feel native to your product
Michaelvips
Michaelvips•3mo ago
Hi @drippingfist what you mean with is 404'd ?
drippingfist
drippingfist•3mo ago
When I follow the link I see this
No description
Michaelvips
Michaelvips•3mo ago
@drippingfist Try again
drippingfist
drippingfist•3mo ago
Thanks! When I execute on server, it works. But when I execute on client it doesn't work.
drippingfist
drippingfist•3mo ago
This is execute on server
No description
drippingfist
drippingfist•3mo ago
It works when the server checks it's IP - GB
No description
Chris
Chris•2mo ago
Thanks for sharing this - just what I needed as well