Forum Discussion
Difference between IP::client_addr and IP::remote_addr
I'm trying to create an iRule that inserts an X-Forwarded-For header based on the user's IP address, and I see that there are iRule examples that use IP::remote_addr while there are others that use IP::client_addr.
I can't seem to find a difference between these two commands, is there a difference?
IP::remote_addr
Returns the IP address of the host on the far end of the connection. In the clientside context, this is the client IP address. In the serverside context this is the node IP address. You can also specify the IP::client_addr and IP::server_addr commands, respectively.
https://clouddocs.f5.com/api/irules/IP__remote_addr.html
IP::client_addr
Returns the client IP address of a connection. This command is equivalent to the command clientside { IP::remote_addr }
https://clouddocs.f5.com/api/irules/IP__client_addr.html
- Lee_SutcliffeNacreous
IP::remote_addr
Returns the IP address of the host on the far end of the connection. In the clientside context, this is the client IP address. In the serverside context this is the node IP address. You can also specify the IP::client_addr and IP::server_addr commands, respectively.
https://clouddocs.f5.com/api/irules/IP__remote_addr.html
IP::client_addr
Returns the client IP address of a connection. This command is equivalent to the command clientside { IP::remote_addr }
https://clouddocs.f5.com/api/irules/IP__client_addr.html
- adam88Cirrus
Thanks Lee!
Also thanks for the URL - a bit lost now that the wiki has moved.
- Lee_SutcliffeNacreous
No worries, it' a bit of a pain as Google hasn't re-indexed everything but you should find all the documentation in Clouddocs now.
Recent Discussions
Related Content
* 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