-
-
Notifications
You must be signed in to change notification settings - Fork 463
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to get request's remote client IP in Node.js? #2994
Comments
hi @movahhedi |
Hello @EdamAme-x Node.js, PM2, nginx/Apache. |
Hi @movahhedi, |
Isn't this feature good enough to be included in Hono [for Node]? |
I don't think Node.js by itself is often used to build servers, what do you think? I think most would use a reverse proxy or a deployment service. implement in Koa |
If you implement it, you can add it to the getConninfo helper. |
What is the feature you are proposing?
How can i get the IP of the remote client?
I've seen https://hono.dev/docs/helpers/conninfo but there isn't anything for Node.js.
In Koa, its
ctx.request.ip
. codeMay be useful:
The text was updated successfully, but these errors were encountered: