IP address of client in Python SimpleXMLRPCServer? -
I have a server (Python).
How do I obtain the customer's IP address in the request handler?
This information appears in the log. However, I am not sure how to use this information from within the request handler.
As Michael said, you received client_address
from within the request handler For example, you can override the __init __
function which is indirectly inherited from BaseRequestHandler
.
class RequestHandler (SimpleXMLRPCRequestHandler): def __init __ (self, Request, client_address, server): print_click ############################################ #####
Comments
Post a Comment