Configure app to use localhost:8080 as a socks5 proxy.
Then run command:
ssh -C2qTnN -D 8080 username@hostname
Reference