Sphinx Server - Requested User IP address

Is there a way to access the Sphinx Server Context.Request information during the login process such as the ConfigureToken event so that we can access the IP address of the request that the login request came from?

Yes, since Sphinx is nothing more than a XData module, you can use XData context from it:

  IP := TXDataOperationContext.Current.Request.RemoteIp;

Thanks again!

For reference of those wondering need to add XData.Server.Module to uses

1 Like

This topic was automatically closed 60 minutes after the last reply. New replies are no longer allowed.