<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <p>Today I was trying ssh tunneling between my desktop machine and a
      raspberry pi.  On the desktop machine I entered the following:</p>
    <p>ssh <a class="moz-txt-link-abbreviated" href="mailto:user@192.168.1.4">user@192.168.1.4</a> -L 3000:192.168.1.4:1234</p>
    <p>I then gave it my password then started rtl_tcp :<br>
      <br>
      <span style="color:#000000;background-color:#ffffff;">$ rtl_tcp -a
        192.168.1.4 -p 1234</span></p>
    <p>From my desktop machine I connected to 127.0.0.1:3000 and the
      connection was successful.</p>
    <p>$ nrsc5 -H 127.0.0.1:1234 91.9 0<br>
       IT worked as expected.<span style="font-family:monospace"><br>
      </span></p>
    <p>Then I logged out and tried again, only instead of the ip address
      I entered the name of hostname.</p>
    <p>$ ssh  <a class="moz-txt-link-abbreviated" href="mailto:user@ladmo.asuscomm.com">user@ladmo.asuscomm.com</a> -L 1234:ladmo.asuscomm.com:1234</p>
    <p>Then I started rtl_tcp just like I did before.<br>
    </p>
    From the desktop machine I tried the same command again:<br>
    $ nrsc5 -H 127.0.0.1:1234 91.9 0<br>
    <p>This time I got an error message.  I checked the terminal window
      where I logged into the raspberry pi and saw this:<br>
      channel 3: open failed: connect failed: Connection refused</p>
    <p>I logged out and tried again, only with the -v option:<br>
      $ ssh -v <a class="moz-txt-link-abbreviated" href="mailto:user@machine.domain.com">user@machine.domain.com</a> -L 1234:machine.domain.com:1234</p>
    <p><br>
    </p>
    <p>I tried again:<br>
      <span style="color:#000000;background-color:#ffffff;">$ rtl_tcp -a
        192.168.1.4 -p 1234<br>
      </span></p>
    <p><span style="color:#000000;background-color:#ffffff;">This time I
        got   a little more information:<br>
        <br>
        debug1: channel 3: free: direct-tcpip: listening port 3000 for
        machine.domain.com port 1234, connect from 127.0.0.1 port 56318
        to 127.0.0.1 port 3000, nchannels 4</span></p>
    <p><span style="color:#000000;background-color:#ffffff;">I tried one
        more time using the IP address assigned by my ISP.  It didn't
        work and I got the same message as above.<br>
      </span></p>
    <p><span style="color:#000000;background-color:#ffffff;">Does anyone
        know why it doesn't work when I don't use the local IP address? 
        The router is configured to forward incoming connections on port
        22 to the raspberry pi.</span></p>
    <p><span style="color:#000000;background-color:#ffffff;"><br>
      </span></p>
    <p><span style="color:#000000;background-color:#ffffff;">Thanks</span></p>
    <p><span style="color:#000000;background-color:#ffffff;"><br>
      </span></p>
  </body>
</html>