access requesting IP from actionwebservice controller/model

I'm building a SOAP server for a rails project we have here. I'm using actionwebservice to achieve this.

Inside the logic for one of the SOAP methods I need to read the IP address of the requesting client.

For a regular rails controller we've been using this construct, which works nicely