title: Internal only HTTP Cloud Function unreachable
body: <p>I am trying to set up a HTTP Cloud Function that allows only internal traffic, as explained in <a href="https://cloud.google.com/functions/docs/networking/network-settings#ingress_settings" rel="nofollow noreferrer">Google’s public docs</a>.</p>
  <p>However, when I try to access the function from a GCE instance that does not have an external IP address it does not work, and gives me the following error:</p>
  <p><a href="https://i.stack.imgur.com/U2v00.png" rel="nofollow noreferrer">Image</a></p>
  <p>As you can see in the following screenshots, I have both the Function and the GCE instance in the same region:</p>
  <p><a href="https://i.stack.imgur.com/jT4cJ.png" rel="nofollow noreferrer">Functions</a></p>
  <p><a href="https://i.stack.imgur.com/7yP5R.png" rel="nofollow noreferrer">GCE network interface</a></p>
  <p>This project only has <strong>1</strong> VPC network, which is the default one, and the source code for the Cloud Function is the default suggestion of the Console:</p>
  <p><a href="https://i.stack.imgur.com/l8wdN.png" rel="nofollow noreferrer">Source code</a></p>
  <p>Strangely enough, if I give an external IP address to the GCE instance it works, so does it mean that the traffic is still going to the internet?</p>