title: what nodejs, react-native IP address has to be used in endpoint when app is in google play store?
body: <p>So I made a react native app with nodeJS and in order to connect nodejs backend to react native frontend I had to create an endpoint like such:</p>
  <pre><code>app.post(&quot;/send_mail&quot;, cors(), async (req, res) =&gt; {
    let {text} = req.body
    var transport = nodemailer.createTransport({
      host: &quot;smtp.mailtrap.io&quot;,
      port: 2525,
      auth: {
        user: &quot;usertoken&quot;,
        pass: &quot;password&quot;
      }
    })
    await transport.sendMail({
      from: &quot;email@email.com&quot;,
      to: &quot;email2@email.com&quot;,
      subject: &quot;message&quot;,
      html: `&lt;p&gt;${text}&lt;/p&gt;`
    })
  })
  </code></pre>
  <p>and in react native frontend call function like that :</p>
  <pre><code>const handleSend = async() =&gt; {
      try {
        await axios.post(&quot;http://192.168.0.104:3333/send_mail&quot;, {    //localhost
          text: placeHolderLocationLatLon
        })
      } catch (error) {
        setHandleSetError(error)
      }}
  </code></pre>
  <p>and it works fine in the local environment. But in the google play store, this IP address doesn't work because it's my localhost ipv4. I tried to use localhost:3333, but that doesn't work too. I can't find anywhere described anything about what IP has to be used in the google play store. Does anyone know how I should make this endpoint? Thank you</p>