joshlf
joshlf

Reputation: 23617

Serve multiple ports from Google App Engine

Is it possible for an app on Google App Engine to listen on multiple ports? For example, I'm running an app in Go, and I'd like to use both ListenAndServe (the default HTTP server) and also ListenAndServeTLS. These listen on different ports. Will this work? Will GAE allow me to listen on multiple port sockets, or will it prevent one from listening? Further, if I want to only run one listener, can I do that on a non-standard port (other than 80)?

Upvotes: 3

Views: 1604

Answers (1)

Dmytro Sadovnychyi
Dmytro Sadovnychyi

Reputation: 6201

You should use Compute Engine or Managed VM for this. As @Tim Hofman mentioned it's not possible on app engine.

From docs:

You cannot create a listen socket; you can only create outbound sockets.

Upvotes: 4

Related Questions