Get the IP address of the client sending a request.
It receives the Request object or the headers object and use it to get the IP address from one of the following headers in order.
If the IP address is valid, it will be returned. Otherwise, null will be returned.
If the header values contains more than one IP address, the first valid one will be returned.
Get the IP address of the client sending a request.
It receives the Request object or the headers object and use it to get the IP address from one of the following headers in order.
If the IP address is valid, it will be returned. Otherwise, null will be returned.
If the header values contains more than one IP address, the first valid one will be returned.