Cannot connect to LOCALHOST SSH portforward

Written by James McDonald

September 5, 2023

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 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
	LocalForward 8200


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.

You May Also Like…