'How do I change and distribute the IP port information between React Native and android?

I'm trying to create and distribute a file with APK, but I want the IP and port to be external rather than localhost and 8081 let me know

I made a project like below

npm install -g react-native-cli react-native init testapp



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source