Forum Discussion
Aug 20, 2018
whatismyip on the internal network
Is it possible to create an irule that would capture a users IP address and then provide it back to them in the browser? We have users that have a hard time figuring out how to get their IP address ...
Kevin_Stewart
Employee
Aug 20, 2018Something like this?
when HTTP_REQUEST {
HTTP::respond 200 content "Your IP address is: [IP::client_addr]"
}
- DBAug 10, 2020
Nimbostratus
Trying to add this to a complex page being written by an irule that declares the HTML content in curly braces, like this:
HTTP::respond 200 content {
<html>
.....
}
If I put the "[IP::client_addr]" into the bracketed content, it prints out [IP::client_addr] instead of the value. How do I get it to do the substitution and print the actual value?
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