Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I am working on a web application using the Pylons framework. The web server is binding to localhost:5000 so I am able to access my application by going to localhost:5000 in my browser.

I would like to be able to access the server from another computer on the same network. The computer that is hosting the server and application is running Mac OSX and the computer I would like to be able to access the application is running Windows 7 (I have cygwin with SSH installed as well as PuTTY).

I could work around this by binding to the host name of the computer but would rather leave it running only on localhost. I was thinking I could do something with SSH tunneling but have not had any luck so far. Any ideas?

share|improve this question

2 Answers 2

up vote 1 down vote accepted

If you have puTTY, then open up an ssh connection to the Mac. Before actually clicking "Open", Go to Connection -> SSH -> Tunnels and add a tunnel:

Source port 5000

Destination localhost:5000

Type Local (default)

Now click "Open" and log in normally with user/pass. Now from your windows computer, you can access your appliation at localhost:5000 ;)

share|improve this answer
ssh -L 5000:localhost:5000 ...
share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.