How can I get client Ip Address? #928
|
I didn't find such property in Request. Thanks! |
Answered by
justcoding121
Aug 3, 2026
Replies: 1 comment
|
It's on the session, not the request: proxyServer.BeforeRequest += async (sender, e) =>
{
var clientIp = e.ClientRemoteEndPoint.Address;
Console.WriteLine($"Client IP: {clientIp}");
};
Closing this one out. |
0 replies
Answer selected by
justcoding121
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
It's on the session, not the request:
e.ClientRemoteEndPointis the TCP peer that connected to the proxy. (There's alsoe.ClientLocalEndPointfor the local side of that socket.)Closing this one out.