<html>
    <head>
      <base href="https://bugs.llvm.org/">
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - I would like to control the remote communication port"
   href="https://bugs.llvm.org/show_bug.cgi?id=45669">45669</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>I would like to control the remote communication port
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>lldb
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>unspecified
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>All
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>All
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>enhancement
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>P
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>All Bugs
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>lldb-dev@lists.llvm.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>maxime.roussinbelanger@gmail.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>jdevlieghere@apple.com, llvm-bugs@lists.llvm.org
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Hello!

I would like to debug my target (which is at home), from my remote work
computer while being at home through a VPN.

>From home I connect to my workstation through the VPN and create an ssh tunnel  
(ssh config: `RemoteForward localhost:10000 TARGET_LAN_IP:10000`).

But when I try to attach to the running application on the target it
dynamically allocates a port and tries to reach the server to that port.
Unfortunately, this is not possible because of the ssh tunnel. I can however do
: `platform connect connect://localhost:10000`, but I cannot go into debugging.

SSH tunnelling doesn't support, as far as I know, ranges of RemoteForward
ports.

Is there a way to control the port that is dynamically allocated? I found a
"similar" issue of 4 years ago: (I'm not inside a container, but the idea is
the same)

<a href="http://lists.llvm.org/pipermail/lldb-dev/2016-June/010616.html">http://lists.llvm.org/pipermail/lldb-dev/2016-June/010616.html</a>

I'm wondering if the situation is still the same and the port cannot be set
manually?</pre>
        </div>
      </p>


      <hr>
      <span>You are receiving this mail because:</span>

      <ul>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>