<br><br><div class="gmail_quote">On Sun, Oct 30, 2011 at 11:31, Fernando Perez <span dir="ltr"><<a href="mailto:fperez.net@gmail.com">fperez.net@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 class="im">On Sun, Oct 30, 2011 at 11:25 AM, Thomas Kluyver <<a href="mailto:takowl@gmail.com">takowl@gmail.com</a>> wrote:<br>
> Is it easy/safe/worthwhile to automate this, so ws-hostname defaults to the<br>
> IP address specified? Or does it find the computer's hostname for the<br>
> default?<br>
<br>
</div>The problem is that the simplest approach if you actually want to be<br>
world-reachable is to say:<br>
<br>
--ip='*'<br>
<br>
to listen on all interfaces your system has. And at that point we<br>
have no reliable way of knowing what public hostname will resolve to<br>
your IP address. I suppose we could support a mode where:<br>
<br>
1. ip is given, is not * and is not 127.x.y.z<br>
2. ws-hostname is not given<br>
<br>
then ws-hostname is set to the ip automatically.<br>
<br>
But I'll defer to Min on whether there are any holes in that logic, he<br>
wrote that code and there may be subtleties I'm not aware of.<br></blockquote><div><br></div><div><br></div><div>I did not write this code, it was Brian. I will look into it, to see why ws-hostname does not allow the right connections.</div>
<div><br></div><div>This is also related to why tunneling doesn't work - the ws url is explicitly defined by the server, and completely ignores</div><div>the path of the original connection. So even if you tunnel local 9999 to your server's 8888 and you can view the notebook</div>
<div>on local 9999, the ws connection will try on local 8888 and fail.</div><div><br></div><div>We will have to ask Brian about why the ws connection does not follow the rest of the server.</div><div> </div><div>-MinRK</div>
<div><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div><div></div><div class="h5"><br>
Cheers,<br>
<br>
f<br>
_______________________________________________<br>
IPython-User mailing list<br>
<a href="mailto:IPython-User@scipy.org">IPython-User@scipy.org</a><br>
<a href="http://mail.scipy.org/mailman/listinfo/ipython-user" target="_blank">http://mail.scipy.org/mailman/listinfo/ipython-user</a><br>
</div></div></blockquote></div><br>