diff --git a/src/Radarr.Http/Extensions/RequestExtensions.cs b/src/Radarr.Http/Extensions/RequestExtensions.cs index aab072807..f33d43c64 100644 --- a/src/Radarr.Http/Extensions/RequestExtensions.cs +++ b/src/Radarr.Http/Extensions/RequestExtensions.cs @@ -156,6 +156,12 @@ namespace Radarr.Http.Extensions } var remoteIP = request.HttpContext.Connection.RemoteIpAddress; + + if (remoteIP.IsIPv4MappedToIPv6) + { + remoteIP = remoteIP.MapToIPv4(); + } + var remoteAddress = remoteIP.ToString(); // Only check if forwarded by a local network reverse proxy