Automatic port forwarding

DevOps Code (Code) automatically forwards ports from the dev container, so that you can access to applications that use TCP ports, from your local machine. For example, if you run a web application in Code, the port on which the web server listens will be forwarded so that you can access the web application from your web browser.

Note: The dev container uses some ports internally and reserves the port range 7000 - 8000 for your application to use.

When Code detects that an application is running in the dev container and listening on a port, it automatically forwards the port, making it accessible outside the container. For example, you can connect to applications running within the dev container from your local machine.