title: Change default react-native android port
body: <h2><strong>The problem</strong></h2>
  <p>I'm developing an app which uses MongoDB realm and Redux. When only redux is in the project, no problem. But then after <a href="https://github.com/jhen0409/react-native-debugger" rel="nofollow noreferrer">debuggin</a> it with realm <a href="https://docs.mongodb.com/realm/react-native/install#install-realm-with-npm" rel="nofollow noreferrer">installed</a> errors started happening. Realm is using <code>port=8083</code> for its XML requests, while React Native is running by <a href="https://reactnative.dev/docs/running-on-device#method-1-using-adb-reverse-recommended-1" rel="nofollow noreferrer">default</a> in <code>port=8081</code>. So, when realm does its first XML request to <a href="https://docs.mongodb.com/realm/react-native/quick-start#initialize-the-app" rel="nofollow noreferrer">initialize</a> the realm app react native crashes.</p>
  <p><a href="https://i.stack.imgur.com/tFf4I.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/tFf4I.png" alt="error in debugger" /></a></p>
  <h2><strong>The troubleshooting</strong></h2>
  <p>By looking at the react-native-debugger <a href="https://github.com/jhen0409/react-native-debugger/blob/master/docs/getting-started.md#getting-started" rel="nofollow noreferrer">documentation</a> its possible to change de debugger port. Nice! And then i searched for a way to do the same in react-native. As weird as it sounds, apparently react-native's android port is <a href="https://stackoverflow.com/questions/34431052/react-native-change-listening-port">hardcoded</a> by the <code>react-native init</code>, meaning that only the <code>default 8081</code> port works. Actually, only the metro server and ios port can be <a href="https://reactnative.dev/docs/troubleshooting#using-a-port-other-than-8081" rel="nofollow noreferrer">changed</a>. I requested <a href="https://support.mongodb.com/case/00729665" rel="nofollow noreferrer">support</a> from MongoDB, about changing their <code>default port to 8081</code>. But still waiting for an answer.</p>
  <p>This is the app  <a href="https://github.com/codeLearnerrr/crudApp" rel="nofollow noreferrer">repository</a>
  Any suggestion?</p>
  <p>Thanks in advance!</p>