diff --git a/src/Umbraco.Core/Auditing/IdentityAuditEventArgs.cs b/src/Umbraco.Core/Auditing/IdentityAuditEventArgs.cs
index 6746aff8f2..bc53aa3b64 100644
--- a/src/Umbraco.Core/Auditing/IdentityAuditEventArgs.cs
+++ b/src/Umbraco.Core/Auditing/IdentityAuditEventArgs.cs
@@ -33,12 +33,12 @@ namespace Umbraco.Core.Auditing
///
protected string GetCurrentRequestIpAddress()
{
- var httpContext = HttpContext.Current == null ? (HttpContextBase)null : new HttpContextWrapper(HttpContext.Current);
- return httpContext.GetCurrentRequestIpAddress();
+ var owinContext = HttpContext.Current.GetOwinContext();
+ return owinContext == null ? string.Empty : owinContext.Request.RemoteIpAddress;
}
///
- /// Returns the current request IP address for logging if there is one
+ /// Returns the current logged in backoffice user's Id logging if there is one
///
///
protected int GetCurrentRequestBackofficeUserId()