Hi,
I have a live site in Knetico 13.0.78 using .net core and hosted on IIS 10.
In the code i am trying to retrieve the IP address of the client. I have used code with .NET core but this is returning the IP of the Server and not teh clients IP.
Does kentico have a function for retrieving this data?
This does not seem Kentico related. If you're just running a .NET Core website, you should be able to retrieve the client's ip address through the current request like so:
var clientIpAddress = Request.HttpContext.Connection.RemoteIpAddress;
Check out this question too: https://devnet.kentico.com/questions/how-can-we-capture-ip-address-of-user-on-k-13-dot-net-core
Please, sign in to be able to submit a new answer.