ExpoKit uses wrong network adapter for development URL

I have two working connections on my Mac - Ethernet and Wi-Fi. During XCode building process ExpoKit generates and puts into EXBuildConstants development URL with the Ethernet IP address. As a result, I can run the app on a simulator, but not on a real device connected via Wi-Fi.

I specify correct address to the Metro Bundler with REACT_NATIVE_PACKAGER_HOSTNAME, but ExpoKit doesn’t seem to take address from the Metro Bundler. Is there a way to specify what network adapter ExpoKit takes the IP from? I tried switching adapter order in network settings, but that seems to have no effect.

I ended up working around this issue by creating a script that simply overwrites development URL value in $PROJECT_DIR/ios/Pods/ExpoKit/ios/Exponent/Kernel/Environment/EXBuildConstants.m with what I need. Not an ideal solution, but it works.

You can use the following option:
REACT_NATIVE_PACKAGER_HOSTNAME='<YourIpAddress>' expo start

As I’ve mentioned in my question, I’m already doing that, it doesn’t solve the issue.