C#C
C#2y ago
hutonahill

Capture clients IP address when they call my API

I am making an authentication API. I would like to log the IP address my client as part of my session system. I need a method of capturing the clients IP address that isn't passed in by the client. I've tried HttpContext, but that seems to be passed in by the client who i cant trust.
Was this page helpful?