title: Can you run /host firebase emulator that is accessible from public ip?
body: <p>I am using the firebase emulator to host some GCF functions on my machine. They are configured to run/host on localhost:5001. This works great.</p>
  <p>I am now using Google Tasks in my app, and the task I have needs to call a GCF function. Tasks does not run locally, so I've setup my machine to be accessed via a public IP address and opened the port 5001 to allow traffic in on that port. The idea is that the Google task can call the function on my machine, so I can properly test.</p>
  <p>I cannot seem to get the emulator to work with any outside public IP address. Is this just not possible or if it is, how do I configure?</p>
  <p>UPDATED, there isn't much code to review here...I am just wanting to know if you can configure the emulator to listen on a public port. Here is the default firebase.json file</p>
  <pre><code>   {
       &quot;functions&quot;: {
          &quot;predeploy&quot;: [
           &quot;npm --prefix \&quot;$RESOURCE_DIR\&quot; run lint&quot;
      ],
      &quot;source&quot;: &quot;functions&quot;
    },
    &quot;emulators&quot;: {
      &quot;functions&quot;: {
        &quot;port&quot;: 5001
      },
      &quot;pubsub&quot;: {
        &quot;port&quot;: 8085
      },
      &quot;ui&quot;: {
        &quot;enabled&quot;: true
      }
    }
  }
  </code></pre>
  <p>In my research, I found you can add the &quot;host&quot; attribute to allow your local network to access the emulator using &quot;host&quot;: &quot;0.0.0.0&quot;, so it looks like this: This works to allow access via my local ip like <a href="http://192.168.1.216:5001" rel="nofollow noreferrer">http://192.168.1.216:5001</a></p>
  <pre><code>{
    &quot;functions&quot;: {
      &quot;predeploy&quot;: [
        &quot;npm --prefix \&quot;$RESOURCE_DIR\&quot; run lint&quot;
      ],
      &quot;source&quot;: &quot;functions&quot;
    },
    &quot;emulators&quot;: {
      &quot;functions&quot;: {
        &quot;port&quot;: 5001,
        &quot;host&quot;: &quot;0.0.0.0&quot;
      },
      &quot;pubsub&quot;: {
        &quot;port&quot;: 8085
      },
      &quot;ui&quot;: {
        &quot;enabled&quot;: true
      }
    }
  }
  </code></pre>
  <p>Now, using my public ip, which is setup using NAT FORWARDING, it can't access the site <a href="http://108.49.78.181:5001" rel="nofollow noreferrer">http://108.49.78.181:5001</a></p>
  <p>there isn't code so much as, is this even possible? If it is, I'd love some example of how to do it.</p>