JetBrains CodeCanvas 2024.1 Help

Forward Ports

To get access to TCP ports of a dev environment, use port forwarding. Port forwarding lets you forward a port from a remote machine to your local machine and vice versa. For example, you can use this to access services running on the remote machine from your local machine.

There are several ways to forward ports. For example, you can use the port forwarding feature of your IDE or forward ports via SSH.

Forward ports via IDE

Use the port forwarding feature of the IntelliJ-based IDEs to forward ports.

Tip: This feature saves port forwarding configurations to the .idea/forwardedPorts.xml file located in the project root. You can create this file manually, add the necessary port forwarding configurations, and share it with your team via version control. The file may look like this:

<?xml version="1.0" encoding="UTF-8"?> <project version="4"> <component name="PortForwardingSettings"> <ports> <entry key="8080"> <ForwardedPortInfo> <option name="hostPort" value="8080" /> <option name="readOnly" value="false" /> </ForwardedPortInfo> </entry> <entry key="8085"> <ForwardedPortInfo> <option name="hostPort" value="8085" /> <option name="readOnly" value="false" /> </ForwardedPortInfo> </entry> </ports> </component> </project>
Last modified: 17 May 2024