-
Notifications
You must be signed in to change notification settings - Fork 798
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
Get all local IP addresses doesn't work using System.Net.DNS.GetHostAddresses #5387
Comments
You are going to get way (way) better eyeballs here or similar. There is no WSL2 actionable: WSL is faithfully executing the syscalls that your program via dotnet is giving the kernel. WSL2 also faithfully executes the syscalls For what it is worth, I did take a short run at it on WSL2 out of pure academic curiosity but my first guess at why you only get Missing |
Thanks for taking a look and verifying it's not a WSL issue. I'll log the issue on dotnet/runtime. Unfortunately that repo seems a bit overwhelmed at the moment with 5k+ issues and previously logged issues are gathering dust. |
The better command-line analogy than There are a lot of moving parts behind that one-liner, including WSL's DNS server (the address in That said, I am feeling uncomfortable just punting this. The dotnet peeps are probably going to say something like "dude that's what
That yields:
I'll re-open mostly because I've lost my excuse "not going to dive the dotnet source to find out". Maybe there is something WSL could be doing better. No promises you'll get any kind of resolution (joy) in the foreseeable but if I get a chance I'll look a little deeper. I can't tag this WSL bug, because everything is in a sense working properly. But the implication this is some kind of dotnet bug isn't quite right either. |
The dotnet devs already fixed it dotnet/runtime#27534. |
Okay fair enough. Thanks for that link. Looks like all I did was retrace the well trodden path over there. If someone else bumps into |
Environment
Steps to reproduce
Minimal .Net Core project to demonstrate the problem:
Expected behavior
Based on documentation here a call to
System.Net.DNS.GetHostAddresses
with an empty string should return a list of all the local IP addresses.Windows 10 cmd shell result
Ubuntu 18.04.4 LTS vm result
Actual behavior
wsl2 result
The text was updated successfully, but these errors were encountered: