Forum Discussion

Ger_Hackett_323's avatar
Icon for Nimbostratus rankNimbostratus
Aug 11, 2011

Display client source address

To aid the diagnosis of a connectivity issues, I need to use a HTTP::respond to display the client’s IP address.



I’ve tried the code below in an iRule, but the [IP::client_addr] does not get substituted. Do you know how to have the [IP::client_addr] show the client's IP address?






HTTP::respond 200 content {








Source address was [IP::client_addr]







2 Replies

  • Hi Ger Hackett,

    Try this (It is a little fluffed with extra formatting, but works fine):

    when HTTP_RESPONSE {
    HTTP::respond 200 content "
    Client IP Address
    Client Identifier
    Your IP Address is: [IP::client_addr] 
  • Hi Michael,



    That worked perfectly. Thank you very much for your help.