title: Get IP ADDRESS in Express and GraphQL
body: <p>I have a question. So, I recently switched from <code>rest</code> to <code>gql</code>, and I have a problem.
  In <code>rest</code> I got <code>ip address</code> by <code>req.ip</code>. I tried to do it in <code>resolve()</code> function and it wasn't working <code>(undefined)</code>. I searched the web and found this:</p>
  <pre><code>const server = new GraphQLServer({
    context: context =&gt; ({
      ...context,
      db,
      userIp: maybeGetUserIpAddress(context.request),
    }),
  });
  
  const maybeGetuserIpAddress = (request): ?string =&gt; {
    const headers = request.headers;
    if (!headers) return null;
    const ipAddress = headers['x-forwarded-for'];
    if (!ipAddress) return null;
    return ipAddress;
  };
  
  </code></pre>
  <p>But it returns <code>undefined</code> too.</p>
  <p>So, my questions are:</p>
  <pre><code>1. Is this because I'm hosting my server locally?
  2. What is wrong with the code
  </code></pre>