Since your Android device has an IP of its own, you need to point the URL to your computers IP address instead of just localhost. For example
Use the reverse command of the Android Debug Bridge tool (adb):
adb reverse <remote> <local> - reverse socket connections. reverse specs are one of: tcp:<port> localabstract:<unix domain socket name> localreserved:<unix domain socket name> localfilesystem:<unix domain socket name>
adb reverse tcp:3333 tcp:3333
localhost:3333 accessible from your device. You can also use different ports. For example:
adb reverse tcp:8081 tcp:3333
This will redirect the device port 8081 to the local port 3333.
- React Native: fetch request failed with error - TypeError: Network request failed(…)
- React Native Fetch on Android returns Network request failed
- React Native start failed with error code -4094 how to solve this ONCE for ALL?
- react ie fetch Unhandled promise rejection TypeError: Network request failed
- React Native network request failed
- Error handling API fetch request with React
- Why am I getting error 415 on fetch request with POST method in react JS
- Request failed with status code 500 React Native
- Build failed with error MSB4226: The imported project | REACT NATIVE WINDOWS
- What is the best way to deal with a fetch error in react redux?
- GET with query string with Fetch in React Native
- Error : Cannot read property fetch. Using jest-expo with react native
- Firebase initial error with React Native (Cannot read property 'getItem' of undefined)
- Why does react hook throw the act error when used with fetch api?
- Error: Request failed with status code 401 axios in React JS
- Can't deploy React Project. Error is Command failed with exit code 1
- CORS Errors only with 400 bad request react fetch request
- React Native `npm start` with watchman error
- how to fill picker (android) of react native with fetch
- React Native: XCode: Build failed with error "EMFILE: too many open files, watch"
- How to request microphone permissions with React Native Webview on Android Devices
- Problem with nested fetch request in React
- React native buld failed with the following message Failed to list versions for com.facebook.react:react-native
- Configuring React with Asp.net MVC4,getting error like Failed to load resource[app.jsx] in browser
- How to setup sublime 3 with react native so that when you click on the error and it jump to your code?
- getting Network Error when calling axios get request in react js
- error "Converting circular structure to JSON -> starting at object with constructor 'FiberNode'" in react native
- Axios mock adapter giving error 'Error: Request failed with status code 404'
- Network request failed from fetch in reactjs app
- React and Express iTunes Search API :: Error: Request failed with status code 404
More Query from same tag
- React - call handler from var in render function
- Connecting React-Leaflet CircleMarker and a scatter plot point on hover
- How do I implement Firebase authentication with local state with hooks?
- Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: undefined React
- Blank page when I run ReactJS build on Apache server
- ReactJS Collapsible element breaks when setting new title and body in hooks
- How to invoke arrow function having parameters in reactJs
- How to mutate specific object in an array using SWR
- Why my check box isn't updated after click?
- Redux async actions getState() returning undefined?
- React prop only changes state after selecting twice
- Cloudinary openUploadWidget throw error in my react app
- map if statement if every 3rd include this
- How to add a class to body only a route
- How to make antd sidebar menu items active depending on the current url?
- How to add fields to array that have no property react js
- How to handle urls with nextjs and chakra-ui?
- How to create a React app directly in the current folder
- How to resolve "serializes to the same string" message with Jest?
- Add absolute paths to app created by "Create React App"
- how can i map the string that are in the object where empty string considered as empty line and each string restricted to one line
- React: why is the state returned from useState stays the same when the initializer function gets called on every re-render?
- Django React CSRF Issues
- React setState in function or setState in useCallback
- How to change the value of the key form an object with the value of some another key of the same object?
- Grid item height not matching responsive square child
- Get the id details from an array which was extracted from another array
- Page doesn't scroll when cursor is over fixed div
- Cannot read property of data null in ReactJs when fetching from JSON
- How do I reset select elements in a React form after submission?