I'm currently trying to access local network (192.168.1.**) from my android react-native application.
I've no access to the internet but only some website from my company. (I can access them throw chrome, opera, edge but not throw firefox).
When I try to fetch the url "constellation.tech" (192.168.1.223) (which is one of the accessible website) I got this error :
TypeError: Network request failed
at XMLHttpRequest.xhr.onerror (7d73db73-6dce-4f17-a442-ddd610de0c2a:24524)
at XMLHttpRequest.dispatchEvent (7d73db73-6dce-4f17-a442-ddd610de0c2a:29723)
at XMLHttpRequest.setReadyState (7d73db73-6dce-4f17-a442-ddd610de0c2a:29085)
at XMLHttpRequest.__didCompleteResponse (7d73db73-6dce-4f17-a442-ddd610de0c2a:28912)
at 7d73db73-6dce-4f17-a442-ddd610de0c2a:29022
at RCTDeviceEventEmitter.emit (7d73db73-6dce-4f17-a442-ddd610de0c2a:2913)
at MessageQueue.__callFunction (7d73db73-6dce-4f17-a442-ddd610de0c2a:2218)
at 7d73db73-6dce-4f17-a442-ddd610de0c2a:1960
at MessageQueue.__guard (7d73db73-6dce-4f17-a442-ddd610de0c2a:2172)
at MessageQueue.callFunctionReturnFlushedQueue (7d73db73-6dce-4f17-a442-ddd610de0c2a:1959)
I've already search on some post, most of them are about fetching localhost, I've tried some workaround like using axios, set :
<application
...
android:usesCleartextTraffic="true"
...>
to ./android/app/src/main/AndroidManifest.xml.
Does someone have any information, or a solution to this problem ?
Thanks for reading :)