Port Management allows networking between Service Containers on your server. You can expose ports for your container to listen to or publish them to be accessible to the internet.
We restrict publishing ports below 1024 as these are reserved for system processes. We also require these to be unique for each container on the server.
Currently, we don't allow you to modify ports for Web/Application containers through the Control Panel. Ports 80 and 443 are open by default to allow HTTP and HTTPS connections.
The container will be restarted for any port changes to take effect.
This section is for Developers or people with experience with APIs and Docker Compose.
To edit your ports using the SiteHost API:
The following port definition formats are supported by the Port Management Form:
Type | Format |
---|---|
Exposed | 8989, 8989/tcp |
Published | 8989:8989, 8989:8989/tcp |
If you have defined ports using other formats via the /cloud/stack/update API , such as port ranges, you will be unable to edit them through the Control Panel. You can either convert your ports to fit the supported formats, or continue to use the API to manage your ports as before.