Log in
Log into community
Share feedback, ideas and get community help
View all posts
Related posts
Did this answer your question?
π
π
π
Powered by
Hall
Inactive
Updated 3 months ago
0
Follow
Get IP Address
Get IP Address
Inactive
0
Follow
N
Nidzam
9 months ago
Β·
How do I get the client ip address, the user who is using the typebot?
3
M
N
d
21 comments
Share
Open in Discord
M
Michael
9 months ago
There is a lot way, the easy way I use is make a HTTP request to
https://api.ipify.org/?format=json
M
Michael
9 months ago
https://typebot.co/get-ip
/
https://app.typebot.io/typebots/cltrqfewt001e1ygnhu8clvg9/edit
N
Nidzam
9 months 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?
M
Michael
9 months 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
N
Nidzam
9 months ago
Ah OK... Let me try it again...
M
Michael
9 months ago
works?
N
Nidzam
9 months 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. π
d
dig
9 months ago
nice question. thanks for the knowledge
d
drippingfist
9 months ago
I get error 520
M
Michael
9 months ago
@drippingfist where ?
J
JohnSmith
9 months ago
It should work, I added this functionality using a HTTP GET request yesterday
d
drippingfist
9 months 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.
d
drippingfist
9 months ago
https://app.typebot.io/typebots/cltrqfewt001e1ygnhu8clvg9/edit
is 404'd
M
Michael
9 months ago
Hi @drippingfist what you mean with is 404'd ?
d
drippingfist
9 months ago
When I follow the link I see this
Attachment
M
Michael
9 months ago
@drippingfist Try again
d
drippingfist
9 months ago
Thanks!
d
drippingfist
9 months ago
When I execute on server, it works. But when I execute on client it doesn't work.
d
drippingfist
8 months ago
This is execute on server
Attachment
d
drippingfist
8 months ago
It works when the server checks it's IP - GB
Attachment
C
Chris
8 months ago
Thanks for sharing this - just what I needed as well
Add a reply
Sign up and join the conversation on Discord
Join on Discord