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

.local / mDNS doesn't work when localias runs inside wsl2 #36

Open
lumosminima opened this issue Sep 16, 2024 · 2 comments
Open

.local / mDNS doesn't work when localias runs inside wsl2 #36

lumosminima opened this issue Sep 16, 2024 · 2 comments
Assignees
Labels
bug something isn't working mdns related to mdns / .local domains wsl2 related to wsl2

Comments

@lumosminima
Copy link

lumosminima commented Sep 16, 2024

I'm using WSL2 and was previously just starting my dev servers with 0.0.0.0 and adding firewall allow rules to access the server on my phone using machine local IP: 192.168.1... but needed https for some app features and the readme here mentions mDNS magic which I don't know what it is but currently I can't access .local domains from phone, localias mentions mDNS: serving ui.local. On actual machine where I run the localias everything works I can resolve ui.local is there something extra needed for it to work also how will my android phone know that ui.local means that it is that specific machine with WSL2 it needs to connect to when it doesn't have any special DNS entry like how the main machine running the localias does?

@peterldowns
Copy link
Owner

On actual machine where I run the localias everything works I can resolve ui.local is there something extra needed for it to work also how will my android phone know that ui.local means that it is that specific machine with WSL2 it needs to connect to when it doesn't have any special DNS entry like how the main machine running the localias does?

Unfortunately, broadcasting mDNS rules from inside of a WSL2 container don't seem to "make it out" to other devices on the network. I haven't been able to figure out why this is or make it work myself. I will update the README to make this clear — I'm sorry that this confused you.

Some related reading that I've found:

@peterldowns peterldowns added bug something isn't working docs related to the documentation labels Sep 18, 2024
@peterldowns peterldowns self-assigned this Sep 18, 2024
@peterldowns
Copy link
Owner

I added a section to the documentation clarifying this problem, and I'll keep this issue open until someone figures out how to fix it.

@peterldowns peterldowns added wsl2 related to wsl2 mdns related to mdns / .local domains and removed docs related to the documentation labels Sep 18, 2024
@peterldowns peterldowns changed the title Can't access .local on my android phone in local network mDNS doesn't work when localias runs inside wsl2 Sep 21, 2024
@peterldowns peterldowns changed the title mDNS doesn't work when localias runs inside wsl2 .local / mDNS doesn't work when localias runs inside wsl2 Sep 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug something isn't working mdns related to mdns / .local domains wsl2 related to wsl2
Projects
None yet
Development

No branches or pull requests

2 participants