Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

How do I connect to the localhost apache web server of the machine I'm connected through Putty in?

share|improve this question
What are you trying to achieve? Test if the server is up? If so telnet localhost 80 (or 443) will do. But it will not guarantee the server is reachable remotely. If you want to brwose the site use w3m or any other text based browser. Without more information people here can't help you properly. – Bram Apr 25 '12 at 11:31
I need to be able to access phpmyadmin from the remote server. how can i configure it so i can view it in my browser? – Michael Grigsby Apr 25 '12 at 11:45
It would have been helpful if you'd mentioned that in the first place. The process is described here: – symcbean Apr 25 '12 at 11:51
Didn't know I needed to. thanks – Michael Grigsby Apr 25 '12 at 12:05

If you are just looking to access phpmyadmin which runs on the remote server, I'd suggest you use putty to create an ssh tunnel. This is described here.

You will need to create a "Local" tunnel from a Local Port of your choice (e.g. 1234 - just make sure the port number is larger than 1024) to destination (or if for some weird reason you are using https on localhost). You can save the tunnel with your putty session so it will be automatically created every time you connect to the remote server.

Then, just go to from your browser and you will be securely accessing the phpmyadmin running on the remote server.

share|improve this answer
When I fill out the Destination and source port I'll need to use – Michael Grigsby Apr 25 '12 at 12:14
Or is it the domain of the server i am connecting to? I am connecting to a domain. So would I need to fill in for the destination? – Michael Grigsby Apr 25 '12 at 12:17
The destination is the address/name and port of the server you want to connect to. So you will need to fill (HTTP) or (HTTPS) for accessing the web server running on – m000 Apr 25 '12 at 12:53

You can use a text-based browser like w3m http://localhost/path/to/page. You can also use wget to download the page content.

share|improve this answer

You can use a text browser such as lynx, or URL fetcher such as curl or wget, or even telnet to your http port directly.

share|improve this answer

Your Answer


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.