<div dir="ltr">Thanks David that works a treat.<div><br></div><div style>Is it possible to combine the tunnel set up and server start up in the server configuration?</div><div style><br></div><div style>I tried:</div><div style>
ssh <span style="background-color:rgb(247,249,250);color:rgb(0,0,0);font-family:monospace,serif;font-size:13px;line-height:19.1875px;text-align:justify">-nNTR 2223:localhost:11111 me@pvserver-host ".</span><span style="background-color:rgb(247,249,250);color:rgb(0,0,0);font-family:monospace,serif;font-size:13px;line-height:19.1875px;text-align:justify">bin/pvserver --server-port=2223 -rc"</span></div>
<div style><br></div><div style="text-align:justify"><font color="#000000" face="monospace, serif"><span style="line-height:19.1875px">but to no effect. </span></font></div><div style="text-align:justify"><font color="#000000" face="monospace, serif"><span style="line-height:19.1875px"><br>
</span></font></div><div style="text-align:justify"><font color="#000000" face="monospace, serif"><span style="line-height:19.1875px">Kit</span></font></div><div style><span style="background-color:rgb(247,249,250);color:rgb(0,0,0);font-family:monospace,serif;font-size:13px;line-height:19.1875px;text-align:justify"><br>
</span></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, Mar 5, 2013 at 12:04 PM, David E DeMarle <span dir="ltr"><<a href="mailto:dave.demarle@kitware.com" target="_blank">dave.demarle@kitware.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><br></div>You are just missing that you need to use a reverse connection to make the server attempt to connect through the tunnel back to the listening client, as opposed to the normal connection mode where the client connects to the listening server.<div>
<br></div><div>In your setup the ssh tunnel is listening on the server side on port 2223 first, then the pvserver also tries to listen on 2223 and it can't because it is in use. Using a reverse connection the server will instead send data to the port which is fine.</div>
<div><br><div><br></div></div></div><div class="gmail_extra"><br clear="all"><div>David E DeMarle<br>Kitware, Inc.<br>R&D Engineer<br>21 Corporate Drive<br>Clifton Park, NY 12065-8662<br>Phone: <a href="tel:518-881-4909" value="+15188814909" target="_blank">518-881-4909</a></div>
<br><br><div class="gmail_quote">On Tue, Mar 5, 2013 at 6:39 AM, Kit Chambers <span dir="ltr"><<a href="mailto:kit.chambers.kc@gmail.com" target="_blank">kit.chambers.kc@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr">Hi,<div><br></div><div>I am trying to run a pvserver which is connected to using a client behind a firewall. The firewall blocks everything except ssh going out. Hence I am trying to use pvserver through an ssh tunnel.</div>
<div><br></div><div>My plan was as follows:</div><div><br></div><div>On client (inside firewall):</div><div>1 - Start paraview</div><div>2 - Create ssh tunell for port 11111</div><div>% ssh -nNTR 2223:localhost:11111 me@pvserver-hostname</div>
<div><br></div><div>Then on pvserver-hostname start the pvserver, however I get the following </div><div><br></div><div><div>% ./bin/pvserver --server-port=2223</div><div>Waiting for client</div><div>
Connection URL: cs://localhost:2223</div><div>ERROR: In /home/rock/kit/PIG/Technical/software/pv_v1.0.0-release/ParaView-3.11.1/VTK/Common/vtkSocket.cxx, line 206</div><div>vtkServerSocket (0x1d067ae0): Socket error in call to bind. Address already in use.</div>
<div><br></div><div>ERROR: In /home/rock/kit/PIG/Technical/software/pv_v1.0.0-release/ParaView-3.11.1/ParaViewCore/ClientServerCore/vtkTCPNetworkAccessManager.cxx, line 284</div><div>vtkTCPNetworkAccessManager (0x1cb4aea0): Failed to set up server socket.</div>
</div><div><br></div><div>This procedure work fines for other services. For example:</div><div>% <span style="text-align:justify;font-size:12px;background-color:rgb(247,249,250)">ssh -nNTR 2223:localhost:22 me@pvserver-hostname</span></div>
<div><br></div><div>Allows me to ssh back to my machine from <span style="text-align:justify;font-size:12px;background-color:rgb(247,249,250)">pvserver-hostname (using port 2223). </span></div>
<div><span style="text-align:justify;font-size:12px;background-color:rgb(247,249,250)"><br></span></div><div><span style="text-align:justify;font-size:12px;background-color:rgb(247,249,250)">What's so special about pvserver? Am I missing something really basic?</span></div>
<div><br></div><div>Any help or suggestions would be greatly appreciated. </div><span><font color="#888888"><div><br></div><div>Kit</div><div><br></div><div><br></div><div><br></div><div><br><div><br></div>
<div><br></div></div></font></span></div>
<br>_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the ParaView Wiki at: <a href="http://paraview.org/Wiki/ParaView" target="_blank">http://paraview.org/Wiki/ParaView</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.paraview.org/mailman/listinfo/paraview" target="_blank">http://www.paraview.org/mailman/listinfo/paraview</a><br>
<br></blockquote></div><br></div>
</blockquote></div><br></div>