Get the IP that is calling the API reliably
Unanswered
Cicada killer posted this in #help-forum
Cicada killerOP
Hello, I need to reliably get the IP address of the client who is requesting my API, usually it can be a host or a client who is going to request it, how can I do this?
1 Reply
you want to check my poc project
https://github.com/tfutada/zenn-nextjs/blob/main/middleware.ts
https://github.com/tfutada/zenn-nextjs/blob/main/middleware.ts