Layer7 API Management

 View Only
  • 1.  USer /Client machine IP capture

    Posted Jun 22, 2020 09:20 AM
    Hi All,

    Is there way to capture user(Client IP) not request.tcp.remoteIP (this yealds me remote ip). Want to get Client machine IP.
    I used request.http.headerValues.x-forwarded-for   but no luck it gives null value.

    Please suggest

    ------------------------------
    Design Engineer Professional
    BT
    ------------------------------


  • 2.  RE: USer /Client machine IP capture
    Best Answer

    Broadcom Employee
    Posted Jun 22, 2020 06:16 PM
    Make sure the load balancer and any other proxies are configured to send it with the request. Also, I would suggest using ${request.http.header.x-forwarded-for} rather than ${request.http.headerValues.x-forwarded-for}. There should only be one value presented.

    ------------------------------
    Jay MacDonald - Adoption Architect - Broadcom API Management (Layer 7)
    ------------------------------