Getting client IP address in endpoint callback

Is there a way to find the the IP address of the remote client from the callback of the register_endpoint function? The callback only receives the body payload and the calling method of the received message as far as I can see.