Open Closed

Port Forwarding Issue in Audit Log Client IP column #8066


User avatar
0
nayan.ranjane@softtech-engr.com created
  • ABP Framework version: 8.2
  • UI Type:MVC
  • Database System: EF Core (SQL Server)

Dear support team, As I am facing issue in ClientIpAddress column in AbpAuditLog table of database. I have hosted my project on docker in Linux machine and using IP port forwarding to attach domain to my actual deployed port but as I expect ClientIpAddress should be the ip address of my client machine from where request is started but getting it as my server IP please help me to resolve this issue Steps to reproduce this issue :

  1. Create sample project with identity server in abp 8.2 or any version.
  2. Deployee it on docker with any port.
  3. Bind any purchased domain to it. 4.Check logs

1 Answer(s)
  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    hi

    You can configure the Forwarded headers for your app.

    https://abp.io/support/questions/1950/How-to-use-a-custom-HTTP-header-to-get-the-client-remote-IP-address

    https://learn.microsoft.com/en-us/aspnet/core/host-and-deploy/proxy-load-balancer?view=aspnetcore-8.0

Made with ❤️ on ABP v9.1.0-preview. Updated on December 12, 2024, 07:15