Cannot connect to LOCALHOST SSH portforward

Trying to connect my browser…

Login

Blog History

Trying to connect my browser to a web server accessible over an SSH tunnel by connecting to http://localhost:8200 and I get.

I know the remote Web Server is running and the SSH tunnel is working. So what is the problem?

Notice the output of ping localhost it is resolving an IPv6 Address.

The solution is to connect using http://127.0.0.1:8200 and force the Browser to use IPv4

Sample SSH Config with a localhost port forward to the other host at the other end of the tunnel

# ~/.ssh/config
# Azure
Host azure
    User rupert
    HostName 1.4.5.6
	LocalForward 8200 127.0.0.1:8200


0 Comments

Submit a Comment

Your email address will not be published. Required fields are marked *

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

The reCAPTCHA verification period has expired. Please reload the page.