-
Notifications
You must be signed in to change notification settings - Fork 394
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
fix: Always assume en0 is the WiFi interface #864
Conversation
## [7.1.2](v7.1.1...v7.1.2) (2024-03-14) ### Bug Fixes * Always assume en0 is the WiFi interface ([#864](#864)) ([6dbfb3f](6dbfb3f))
🎉 This PR is included in version 7.1.2 🎉 The release is available on: Your semantic-release bot 📦🚀 |
After the change, the obtained IP address cannot be directly opened in the browser anymore, while previously, the IP address could be directly opened on ports 8100 or 9100. @mykola-mokhnach @KazuCocoa |
My a couple of real devices had no issue with this. What kind of ip addresses were assigned to your |
My |
How did you configure the ip address? Could you share the list of assigned IP addresses like the below? I assume in the previous implementation, |
So, |
Yes, 10.18 is the IP address of WiFi, but I cannot open the corresponding ports 8100 or 9100 in the browser. However, the 169.254 returned by en2 can directly open port 9100. Can you directly open port 9100 using the IP returned by en0? |
Yes. my env's primary local ip address which is available via the device's Settings app is the |
Btw, I guess |
It is possible, as I am using the company's network. |
We must only assume that the
en0
is the device's Wi-Fi interface instead of any interface whose name starts withen
. See https://stackoverflow.com/questions/30748480/swift-get-devices-wifi-ip-address for more details