When using a LoadBalancer, your server will be receiving traffic from your LoadBalancer's IP address with a header appended as X-Forwarded-For: client-ip-address. In order to make sure stegosoc-agent captures the actual client IP address you need to make sure you have 'real_ip_header' configured.

Below is the steps for different web-servers: