What you need
A server from a template with the Web app launch mode, such as a language-model API or an image tool, with the status Running.
Open the app
- Open the server and select the Connect tab.
- Under App, select Open app, or copy the App address.
The Ports table on the same tab lists the ports that are open on the server, with the server port and the public port and address for each. Ports that are not listed are not reachable from outside. If the app has a sign-in, the Connect tab shows how to sign in under Sign in with.
If you run your own app
Your software must listen on all addresses, not only on localhost, and on a port the template exposes. For a quick test over SSH:
python -m http.server 8000 --bind 0.0.0.0To expose other ports, make your own template with those ports. See Templates.
Keep a port private
Use SSH forwarding. Replace PORT and HOST with the values on the Connect tab:
ssh -p PORT -L 8080:localhost:8000 root@HOSTThen open http://localhost:8080 on your own computer.
Protect your app
A public app is open to anyone who has the address. Add a login or an API key to your software. Do not expose databases, admin pages or notebooks without a password. You are responsible for what runs on your server, as set out in the Acceptable Use Policy.
When the server stops
The app is not reachable while the server is stopped, and the address and ports can change when it starts again. Check the Connect tab after each start.
Ready to try it?
Create a free account and add credit when you want to start a server. The smallest top-up is $10.
Was this helpful?