Expo network response Timed Out, Can't run Expo app on android emulator

Viewed 7866

I'm trying to run My react-native application, I'm running it on android emulator and my phone HUAWEI Y3II and same thing happens. I was working on it fine a few days ago but suddenly this error keeps coming up:
Could not load exp://*myip*:19000 network response timed out

enter image description here

enter image description here And the terminal Log shows:

Fetching the user profile failed
connect ETIMEDOUT 104.197.216.164:443
aTrying to open the project on Android...
Opening on Android device

I tried setting the environment variable REACT_NATIVE_PACKAGER_HOSTNAME to my ip address, I tried turning off the firewall, I ensured that the ports are allowed in the firewall, I tried changing my network from public to private. Here is my package.json file:

{
    "main": "node_modules/expo/AppEntry.js",
    "scripts": {
        "start": "expo start",
        "android": "expo start --android",
        "ios": "expo start --ios",
        "web": "expo start --web",
        "eject": "expo eject"
    },
    "dependencies": {
        "expo": "^35.0.0",
        "react": "16.8.3",
        "react-dom": "16.8.3",
        "react-native": "file:../../../../Users/RiggedToBlow/Downloads/Compressed/react-native-sdk-35.0.0.tar.gz",
        "react-native-gesture-handler": "~1.3.0",
        "react-native-reanimated": "~1.2.0",
        "react-native-web": "^0.11.7",
        "react-navigation": "^4.0.10",
        "react-navigation-stack": "^1.9.4"
    },
    "devDependencies": {
        "babel-preset-expo": "^7.0.0"
    },
    "private": true
}

I really need to work on this please help

7 Answers

Just go to wifi setting Click on your WIFI name And enable Make this pc discoverable Good luck

  1. make sure that your mobile and computer is connected to the same WIFI network

  2. if your computer is connected to your mobile hotspot then try running the app usingexpo start --tunnel command if it still doesn't solve the issue then

  3. change your WIFI to private and turn off the firewall for private network.

Alternatively you need to change your WiFi settings from public to private especially if you have the firewall settings turned on in Windows 10. This worked perfectly for me.

simply change your wifi settings to private and turn off the firewall too.

right click on your wifi name >properties > make the network private then in network protection& firewall >> turn off firewall protection of private network

this worked fine with me

Make your PC discoverable. Go to the wifi list on the bottom right in windows > click "properties" > toggle the "Network Profile" setting to "Private". Should solve it for you.

Go to your windows firewall settings and set new inbound rule for port 19000.

Related