Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This should address the issue of iOS devices providing an incorrect IP address.
I've read online, that this approach might not always work, because it is technically not guaranteed, that the default WiFi interface on iOS is named "en0". But practically I haven't had any issues with it.
While this solution might theoretically not work in every case, it represents a quick and practical fix that should prove effective for most iOS devices on most occasions. Compared to the previous situation where the IP address was consistently incorrect, this update should significantly improve the likelihood of obtaining the correct IP address most of the time.
During my testing, the correct IP address was consistently obtained on a variety of iOS devices across multiple Wi-Fi networks. I haven't encountered any problems with this approach so far.