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: