- to remotely collaborate on a frontend project,
- test a web service,
- access a Jupyter notebook running on your Devbox,
- or access a local database running on your Devbox.
You will need to explicitly specify the hostname
0.0.0.0
within your service to expose ports to the outside world. Using other IP addresses or localhost is incompatible with tunnels.Setting up a tunnel
To set up a Devbox tunnel, first make any ports you will want to access available at Devbox creation time.1
Create a devbox with the ports you want to expose
Create a devbox with the ports you want to expose.
2
Create a tunnel to the port you want to expose
When your devbox is created and running, you can now open a tunnel. Use the From the result, extract the url and open it in your browser to access the service running on your Devbox.
create_tunnel
endpoint to create a unique URL to your devbox.While the Devbox is active and the tunnel is open, the URL now has remote access to this port of your Devbox. Treat with care.