tornado -- 사용 에이 전 트 를 획득 한 remoteip | 도 메 인 이름 가 져 오기 (host)
tornado 통과 self.request.remote_ip 원 격 ip 획득
self. request. host 도 메 인 이름 가 져 오기
상대방 이 대 리 를 사용 했다 면 다음 과 같 을 수 있 습 니 다.
# To get remote_ip, it should set xheaders=True when initializing HTTPServer
http_server = HTTPServer(Application(), xheaders=True)
혹시
application.listen(8080, xheaders=True)