Search code examples
containersibm-cloud

IBM Containers open ports


When I bind an app on IBM Containers to external IP, looks like only 22 (ssh), 80, 443(http/https) and port range 8000-9500 are open. Is this correct ? I believe private network has no restriction, only applies to external network.

I've confirmed this by changing the port of Node.js like

var port = process.env.PORT || 8000;
var server = app.listen(port, function () 

And run like:

# PORT=8080 node app.js

And then curl external IP like:

$ curl <external-ip>:8080

And changed the port from 8000 to several ranges, and found 9500 is final port number which I can access.


Solution

  • For security reasons there is a limited set of ports opened that can be accessed externally. The range you mentioned is not necessarily correct and the list is not published externally for security reasons as well.

    If you need a port to be opened for your specific application you can open a support ticket with the Bluemix support team:

    ibm.biz/bluemixsupport