You are not logged in.
My question is, is it possible to get the clients IP Address (ie the IP Address the clients web browser is running on, or the external IP Address in case of access over the internet) inside the view code.
Eg, in
procedure TMyMVCApplication.Default(var Scope: variant);
begin
{ Need to show the Default page here }
SetVariantNull(Scope);
end;
Do I have access the the clients IP Address?
Would be interested in other context info too if available.
Offline
sure, you can access that information like this :
var context: PServiceRunningContext;
begin
context := @ServiceContext;
clientIP := context.Request.RemoteIP;
Note that the RemoteIP is empty if localhost.
read the documentation
Offline
Perfect! Cheers pvn0
Offline