6

I'm currently moving my e-commerce app to Google App Engine. I'm using the PHP Flexible runtime (PHP flex).

One of the transaction requires a call upon my Payment Provider's HTTP API. The problem now, my Payment Provider requires all caller IP address to be white-listed beforehand through some out-of-band registration. Registration is very restricted, only accepting a handful of IPv4 address per client.

I know GAE will spawn new instance as needed which will be assigned IP address from a large pool. So registering a list of address is not an option either.

I know this defeats the purpose of automatic scaling but is there any way I can assign static IP address to my app?

Is there any other way to approach this problem in GAE?

Will launching my app inside VPC helps here?

  • As of now, the GAE doesn't have the option to assign a static IP to an application. But you can make use of a GCP VM with a static external IP address, and then use it as a proxy for your GAE App might do the task. You can also check for similar discussion here(1) – Digil Mar 8 '18 at 23:18
  • 1
    Additionally, there is an ongoing 'Feature Request' in the GCP for assigning static IP address for the GAE. You can make your valuable comments and suggestions there as well. – Digil Mar 8 '18 at 23:30
  • @Digil seems the proxy method is the way to go for now. If you would write this as answer I will mark it as accepted. – bluearth Mar 13 '18 at 0:13
3

As of now, the GAE doesn't have the option to assign a static IP to an application. But you can make use of a GCP VM with a static external IP address, and then use it as a proxy for your GAE App might do the task. You can also check for a similar discussion here(1)

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.