I\'m trying to build a simple torrent-tracker with Flask, but I meet a problem.
If client in NAPT network, the port, which included in request is in
You can get it from request.environ
request.environ
request.environ.get('REMOTE_PORT')