Forward
this computer → the phone, like adb forward
The agent listens on a port of this computer; each connection goes to a port or socket on the phone (an app's server, localabstract:chrome_devtools_remote for WebView debugging, jdwp:PID…). Port 0 picks a free one.
Reverse
the phone → this computer, like adb reverse
The phone listens on one of its ports; each connection to it comes here and the agent connects it to a host and port it reaches (this computer, the MITM proxy, a server on the network). It ends when the device disconnects. Phone port 0 picks a free one.