I tried to run an application developed in React Native on an Android device, and I encountered the following error.

To solve it, I went to the network and Internet settings of my computer, after clicking on ‘Connection status’ as shown in the following image.

We are now going to click where we are connected to go to the configuration or properties

Last in profile of network we see the options of marking Public or Private, in my case, it has Public.

We changed it to Private.

I made this change, and now it has executed the React Native app correctly on my mobile device.
I hope it helps. Have a happy day!
