title: React native fetch API does not work with my local address or any method except for "ngrok"
body: <p>This API call work when I use this URL with &quot;Ngrok&quot; server &quot;http://d098a0255d41.ngrok.io/api/GetTrainers&quot; but it doesn't work with my local address and I don't want to keep using the &quot;Ngrok&quot; one forever.
  I tried countless methods but they never worked for me, I much appreciate some help or any clues in this!!</p>
  <pre><code>  fetch(&quot;https://192.168.1.228:5001/api/GetTrainers&quot;)
      .then((response) =&gt; response.json())
      .then((responseJson) =&gt; {`enter code here`
        setData(responseJson);
        setFullData(responseJson.results);
        setLoading(false);
      })
      .catch((error) =&gt; {
        console.error(error);
        setLoading(false);
        setError(err);
      });
  }, []);
     
  React.useEffect(() =&gt; {
    let isMounted = true;
    fetchData()
  }, [fetchData]);
  </code></pre>