birdofpreyru / react-native-static-server

Embedded HTTP server for React Native
https://dr.pogodin.studio/docs/react-native-static-server
Other
154 stars 22 forks source link

Fix: Narrow down network interfaces to local wifi only #16

Closed rafalzawadzki closed 1 year ago

rafalzawadzki commented 1 year ago

With my original implementation I missed the fact that we'll want only wifi connections! On a real device the resolved IP could be also eg. for cellular interface which obviously won't work.

Sources: https://stackoverflow.com/questions/6807788/how-to-get-ip-address-of-iphone-programmatically https://stackoverflow.com/questions/30748480/swift-get-devices-wifi-ip-address