Open Closed

Audit Log #3061


0
[email protected] created
  • ABP Framework version: 5.2.1
  • UI type: Blazor
  • DB provider: EF Core

I'm using microservices with Blazor Server. I'm getting issue with Audit Logs. The IP address is not local IP instead of inbound(Client IP Address)


3 Answer(s)
  • 0
    maliming created
    Support Team

    hi

    You can try to override the GetClientIpAddress method.

    https://github.com/abpframework/abp/blob/dev/framework/src/Volo.Abp.AspNetCore/Volo/Abp/AspNetCore/WebClientInfo/HttpContextWebClientInfoProvider.cs#L30

  • 0
    [email protected] created

    Hi. I Did that is there any thing else needs to be done. also i am able to get client ip address insdide blazor app. but not in gateway. its always.::1.

  • 0
    maliming created
    Support Team

    hi

    https://github.com/dotnet/aspnetcore/issues/37728#issuecomment-948511840