That is just madness. The incoming ip address is available to the request handler, see the SocketServer docs. Write a request handler that stashes that info somewhere that rpc responders can access it in a sane way.