detectAddress method

String detectAddress (
  1. RequestContext req
)

Detects the IP address from which the given HTTP request was received.

  • req an HTTP RequestContext request to process. Returns the detected IP address (without a port). If no IP is detected - null will be returned.