In HTTP there is never a guarantee that you will be able to get the real / actual client IP. If you have access to the raw HTTP request via a ServletFilter or web script controller, you can try to use getRemoteAddr() to obtain the IP, but as per definition the result is either the IP of the client OR the last proxy that forwarded the request.
The above being in a share-amp, but now I would like to store this new auditable data (ip address). For that it seems I need to use AuditComponent.recordAuditValues.
I tried injecting the bean AuditComponent (using share-amp-slingshot-application-context.xml) but got an expected class not found. Also tried making the interceptor in repo-amp, there I'am able to inject easily the auditComponent, but cannot get the ServletRequest...
How can I make the obtained ip-address accessible for audit logs?
THe AuditComponent is a Repository-tier component - it cannot be accessed from within Share. You need to perform a remote call to a custom web script / endpoint on the Repository-tier which can then use the AuditComponent to record values.