还是Google给力
self.request.connection.context.address
output: ('127.0.0.1', 56209)
参考:
https://stackoverflow.com/questions/33155831/how-to-get-the-client-port-in-requesthandler
Python编程:Tornado获取客户端的端口port
阅读 77
2022-02-17
还是Google给力
self.request.connection.context.address
output: ('127.0.0.1', 56209)
参考:
https://stackoverflow.com/questions/33155831/how-to-get-the-client-port-in-requesthandler
相关推荐
精彩评论(0)