-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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
Cannot Send to a broadcastable socket on iOS 17 device #106588
Comments
Update, I was mistaken about one of my phones: |
@amp64 could you please share what exact version of .NET 8 are using ( I tried you repro locally with latest .NET 8 servicing release (8.0.8), iPhone 11 with iOS 17.5.1 and the code worked correctly (i.e., it reported "Bound ok") |
Dumb question but how do I determine the exact version of dotnet on my iPhone? dotnet --version on my PC says 8.0.6, my PC has the 8.0.302 NET SDK from VS installed. I am using Avalonia 11.1.2 to x-target iOS. In the logs the closest I see to a version is Microsoft.iOS.Sdk/17.2.8053 In Solution Explorer if I click under Frameworks I see 8.0.624.26715, so it seems like I need to update this. |
Sorry I have done a poor job with the repro here. I was thinking the error was from the Bind, but its actually in the subsequent SendTo. Add this:
|
Not a dumb question at all. Running |
No problem, could you please update the repro example and I'll check it out. |
I updated the description and the repro to improve usefulness and accuracy. |
I'm marking these as 10.0 - as the priority is not that high. Once we figure out the real issue we can consider backporting to 9 as necessary. |
Can confirm that the new repro reproduces inside |
Description
If you try and Send a Broadcast to a socket it will fail on iOS 17 devices with the error "no route to host". I believe this is due to the flag IP_BOUND_IF missing, described here: https://developer.apple.com/forums/thread/658518?answerId=631476022#631476022
Reproduction Steps
Expected behavior
The Send to work
Actual behavior
"No route to host" exception.
Regression?
Unknown. This does work on iOS 15 devices, and iOS 17 simulators.
Known Workarounds
No response
Configuration
iPhone SE 3, iOS 17.5.1, .NET 8 (and 7)
Other information
No response
The text was updated successfully, but these errors were encountered: