Is there a way on macOS with Wi-Fi turned off to get your location? Preferable based on your ethernet host network IP.
According to the documentation, https://developer.apple.com/documentation/corelocation, it's supposed to work on macOS 10.6+.
My code works fine if Wi-Fi is turned on, but when it's turned off, locationManager is always nil.