I have a very limited understanding of computer networking, so my terminology will probably be incorrect in places, but let me try to explain the situation as clearly, general, and accurately as possible.
The set-up is as follows:
An Application with native socks support is configured to connect to a proxy server listening locally (the proxy server in this case is PuTTY with dynamic tunnel enabled), which tunnels via SSH to a remote server that, in turn, connects to the destination.
This works fine when the software on the local machine is acting as a client, i.e. it is initiating the connections, but if the software needs to receive incoming connections, it does not work because connections are made to the remote tunnel server, which does not know what to do with said connections and subsequently drops them.
The remote server and local server are running GNU/Linux and Windows respectively.
My question is, how can I make it so that the remote tunnel server forwards connections it receives on a certain port to my local machine? Preferably over the existing SSH connection if possible.