Skip to content
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

A server with the specified hostname could not be found (code -1003) #13161

Closed
Pau1fitz opened this issue Mar 27, 2017 · 2 comments
Closed

A server with the specified hostname could not be found (code -1003) #13161

Pau1fitz opened this issue Mar 27, 2017 · 2 comments
Labels
Resolution: Locked This issue was locked by the bot.

Comments

@Pau1fitz
Copy link

Pau1fitz commented Mar 27, 2017

I am trying to set up react native and run on my phone using expo.

I have created a react native app using create-react-native-app.

After running this command everything gets built on my machine. I have also downloaded the expo app on my phone.

I then ran npm start and was given the following in my terminal:

enter this address in the Expo app's search bar:

exp://12.34.567.89:19000

When I try this I get the following error in expo -

Error while loading: A server with the specified hostname could not be
found (code -1003)

Has anyone come across this issue before?

@mikaalanwar
Copy link

The same process works fine for me. Try to double check hostname and make sure that the port isn't pre-occupied with something else OR maybe try the QR Code scanning approach, lesser room for errors there.

@hramos
Copy link
Contributor

hramos commented Mar 29, 2017

Make sure both devices are on the same network, and that they can reach each other. The easiest way to test if there's reachability is to open the URL on your device directly. Go to the browser and try loading http://12.34.567.89:19000. If that URL is not found, then the device can't reach your server.

This is typical in captive portal wifi networks (e.g. coffee shops and other public wifi networks). You can get around this by tethering, if you can't use a different network.

@hramos hramos closed this as completed Mar 29, 2017
@facebook facebook locked as resolved and limited conversation to collaborators May 24, 2018
@react-native-bot react-native-bot added the Resolution: Locked This issue was locked by the bot. label Jul 18, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Resolution: Locked This issue was locked by the bot.
Projects
None yet
Development

No branches or pull requests

4 participants