Forum Discussion
Ger_Hackett_323
Nimbostratus
Aug 11, 2011Display 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?
Thanks.
HTTP::respond 200 content {
OK
Source address was [IP::client_addr]
}
2 Replies
- Michael_Yates
Nimbostratus
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] " } - Ger_Hackett_323
Nimbostratus
Hi Michael,
That worked perfectly. Thank you very much for your help.
Regards,
Ger.
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects