Join Discord
Powered by
Getting the IP hono
# workers-help
z
Zetax
04/12/2023, 1:49 PM
Hey there, quick and simple question: Is there a way to get the IP of the client who is sending a request to the worker via hono? Because I can't seem to find it on the docs
k
kian
04/12/2023, 1:50 PM
const ip = c.req.header('CF-Connecting-IP');
z
Zetax
04/12/2023, 1:50 PM
Well, that solved it, thanks!
Previous
Next