Log in to community
Share feedback, ideas and get community help
F
M
a
g
E
610
Home
Questions and bug reports
Powered by
Hall
Questions and bug reports
0
Join
on Discord
Get IP Address
Questions and bug reports
Get IP Address
0
Join
on Discord
N
Nidzam
7 months ago
How do I get the client ip address, the user who is using the typebot?
3
M
N
d
21 comments
Share
M
Michaelvips
7 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
Michaelvips
7 months ago
https://typebot.co/get-ip
/
https://app.typebot.io/typebots/cltrqfewt001e1ygnhu8clvg9/edit
N
Nidzam
7 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
Michaelvips
7 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
7 months ago
Ah OK... Let me try it again...
M
Michaelvips
7 months ago
works?
N
Nidzam
7 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
7 months ago
nice question. thanks for the knowledge
d
drippingfist
7 months ago
I get error 520
M
Michaelvips
7 months ago
@drippingfist where ?
J
JohnSmith
7 months ago
It should work, I added this functionality using a HTTP GET request yesterday
d
drippingfist
7 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
7 months ago
https://app.typebot.io/typebots/cltrqfewt001e1ygnhu8clvg9/edit
is 404'd
M
Michaelvips
7 months ago
Hi @drippingfist what you mean with is 404'd ?
d
drippingfist
7 months ago
When I follow the link I see this
Attachment
M
Michaelvips
7 months ago
@drippingfist Try again
d
drippingfist
7 months ago
Thanks!
d
drippingfist
7 months ago
When I execute on server, it works. But when I execute on client it doesn't work.
d
drippingfist
6 months ago
This is execute on server
Attachment
d
drippingfist
6 months ago
It works when the server checks it's IP - GB
Attachment
C
Chris
6 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