Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

AspNet Request IP Layout Renderer

Rolf Kristensen edited this page Feb 17, 2023 · 7 revisions

Render Client IP address

Platforms Supported: All

Introduced in NLog Web.AspNetCore 4.4.0 & NLog.Web 4.5.0

Configuration Syntax

${aspnet-request-ip}

Parameters

  • CheckForwardedForHeader - Should check value of X-Forwarded-For header (Default = false)

    Introduced with NLog Web.AspNetCore 4.7.1 & NLog.Web 4.7.1

  • CheckForwardedForHeaderOffset - Should check value of X-Forwarded-For header and specify index-offset from comma-separated-split-array (Default = 0)

    Introduced with NLog Web.AspNetCore 5.2.2

Remarks

See also AspNetRequest Host Layout Renderer

Clone this wiki locally

Morty Proxy This is a proxified and sanitized view of the page, visit original site.