futurepress / react-native-static-server

HTTP static file server for React Native
MIT License
360 stars 183 forks source link

URL is (null)://(null):(null) #35

Closed GregoryBabonaux closed 6 years ago

GregoryBabonaux commented 6 years ago

Hey !

I've an issue when i'm building on a IOS device (iPhone 6s Plus) :

The server start at (null)://(null):(null) so nothing works.

The config (works great in simulator) :

let server = new StaticServer(8080, RNFS.DocumentDirectoryPath); server.start().then((url) => { alert('Server started at ' + url) });

Note : it happens only if WIFI is turned off

Any idea ?

Regards

fchasen commented 6 years ago

If wifi is turned off, you'll only be able to use the server with {localOnly: true}