title: How can I get create-react-app to use an IP to connect to my api server?
body: <p>I'm using Facebook's create-react-app. When I start the web-client I see in console:</p>
  
  <pre><code>You can now view web-client in the browser.
  
    Local:            http://localhost:3000/
    On Your Network:  http://192.168.1.107:3000/
  </code></pre>
  
  <p>The problem is my web-client uses localhost to connect to the api-server, which means I can't use the IP address on different devices to debug issues.</p>
  
  <p><strong>env-variables.js:</strong></p>
  
  <pre><code>export const ENV = process.env.NODE_ENV || 'development';
  
  const ALL_ENV_VARS = {
    development: {
      GRAPHQL_ENDPOINT_URI: 'http://localhost:4000/graphql',
    },
  ....
  </code></pre>
  
  <p>I tried updating the above with:</p>
  
  <pre><code>GRAPHQL_ENDPOINT_URI: `http://${process.env.ip}:4000/graphql`,
  </code></pre>
  
  <p>That did not work, <code>process.env.ip</code> is returning undefined. How can I get the above GRAPHQL_ENDPOINT_URI to use the IP address which somehow create-react-app is getting?</p>