Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Assumes the localhost name with PC name #17

Closed
MusaabKh opened this issue Jul 1, 2021 · 3 comments
Closed

Assumes the localhost name with PC name #17

MusaabKh opened this issue Jul 1, 2021 · 3 comments
Assignees
Labels
enhancement New feature or request
Milestone

Comments

@MusaabKh
Copy link

MusaabKh commented Jul 1, 2021

While using WSL the localhost link is not the same as the PC name hence causing every redirect to go to an invalid link. The localhost link generation should not be dependent on the PC name

@WolfgangFahl WolfgangFahl self-assigned this Jul 2, 2021
@WolfgangFahl WolfgangFahl added the enhancement New feature or request label Jul 2, 2021
@WolfgangFahl WolfgangFahl added this to the 0.1.1 milestone Jul 2, 2021
@WolfgangFahl
Copy link
Owner

see https://superuser.com/questions/1131874/how-to-access-localhost-of-linux-subsystem-from-windows - it looks like the WSL implementation is trying to sandbox the environment which is IMHO not a good idea since it's not transparent. So i assume you'd like a feature where you could specify the hostname being used to work around the WSL restrictions?

@WolfgangFahl
Copy link
Owner

Could you please provide an example for the invalid hostname? Did you try adding the entry manually in the
/etc/hosts file? The /etc/host file is hiddent at

%windir%\system32\drivers\etc

in Windows 10 and you need admin rights to edit it. Any entry such as:

127.0.0.1  yourhostname

might work around your problem.

@WolfgangFahl
Copy link
Owner

closing assuming the work around works

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants