'localhost' does not work
See original GitHub issueRancher Desktop Version
1.0.0
Rancher Desktop K8s Version
1.21.9
What operating system are you using?
Windows
Operating System / Build Version
Windows 10 Enterprise 19044.1466
What CPU architecture are you using?
x64
Linux only: what package format did you use to install Rancher Desktop?
No response
Windows User Only
No response
Actual Behavior
I want to connect localhost in i.e., Azure Data Studio/Sql Server Management Studio, but I get an error.
Steps to Reproduce
- Install Rancher Desktop
- Run
docker run -e "ACCEPT_EULA=Y" -e "SA_PASSWORD=yourStrong(!)Password" -p 1433:1433 -d mcr.microsoft.com/mssql/server:2019-latest
- Install Azure Data Studio/Sql Server Management Studio
- Open 3. and connect using
localhost
and credentials from 2.
Result
Timeout
Expected Behavior
Database will connect fast.
Additional Information
I did the same with Docker Desktop I get following listening ports,
With Rancher Desktop I get following listening ports,
I believe port mapping is not done properly. You can argue that spinning up a simple nginxdemos container do work in the browser. Every browser based lookup works but not outside a browser.
Workaround: Disabling IPv6 on all net adapters works, but it takes some time to connect as it was doing a round trip of lookups and falls back on 127.0.0.1. If I use 127.0.0.1 directly it connects very fast.
Issue Analytics
- State:
- Created 2 years ago
- Reactions:6
- Comments:9
Top Results From Across the Web
Localhost Refused to Connect - How to Fix the Error
Localhost is a loopback address used for testing and developing on a local machine. When a user pings localhost, the request remains on...
Read more >Localhost is not working - Stack Overflow
Another possibility for localhost not working is a corrupted HOSTS file. Try deleting it and recreating it with an editor that is not ......
Read more >How to Fix 'Localhost Refused to Connect' Error on Windows?
First off, the most common way to resolve this error is by changing the port of the apache web server if you are...
Read more >Chrome Saying Localhost Refused to Connect, How to Fix the ...
How to Fix Localhost Refused to Connect Chrome? · Fix 1: Change Firewall Settings · Fix 2: Access Localhost by Using 127.0.0.1 ·...
Read more >Why is localhost not working? - Quora
Go to Your XAMPP Control panel. · Click on apache > config > Apache (httpd.conf) · Search for Listen 80 and replace with...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I created a dotnet project that can detect ports created by docker with RD in WSL and bind ANY ip. localhost will work after the bind.
https://github.com/wiruzman/wsl-port-forwarder
Any updates regarding fix for this?