Forums

Remote port forwarding using ssh -R from localhost to pythonanywhere

Hello, I'm trying to build a web app, it is working alright but it needs a specific document server running on localhost(port doesn't really matter). I opened a new bash console and ran my document server in the background, but my web app doesn't seem to pick it up. I gathered that it's something to do with pythonanywhere not being built that way. So i decided to run this document server on my local machine then running below line on my local machine:

ssh -R 8025:localhost:8025 osmanmutlu@ssh.pythonanywhere.com

It connects, but my web app doesn't seem to pick this up either. It's not about my configuration, because i've built this app several times before.

To sum, i need this document server running at my pythonanywhere machine from any port.

If you have any ideas, they would be appreciated. Thank you

that's because the server you are ssh'd into may not be the server you are running your local server on, and also may not be the server that your webapp is running on. (basically not going to be possible if it HAS to be localhost- however, why not just another webapp?)