#5263: publishing a worksheet displays the URL without the hostname
------------------------+---------------------------------------------------
   Reporter:  jason     |       Owner:  boothby   
       Type:  defect    |      Status:  new       
   Priority:  major     |   Milestone:  sage-4.3.1
  Component:  notebook  |    Keywords:            
Work_issues:            |      Author:            
   Upstream:  N/A       |    Reviewer:            
     Merged:            |  
------------------------+---------------------------------------------------
Changes (by mpatel):

 * cc: was (added)


Comment:

 Following the suggestions
 
[http://groups.google.com/group/comp.lang.python/browse_thread/thread/d931cdc326d7032b?hl=en
 here] and [http://stackoverflow.com/questions/166545/finding-a-public-
 facing-ip-address-in-python here], I get:
 {{{
 #!python
 sage: import socket
 sage: socket.gethostbyname(socket.gethostname())
 '127.0.0.1'
 sage: s = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
 sage: s.connect(('google.com', 0))
 sage: s.getsockname()[0]
 '192.168.x.y'
 sage: import urllib
 sage: urllib.urlopen('http://whatismyip.org').read()
 'a.b.c.d'
 }}}
 I'm looking now for ways to iterate over the available interfaces in
 Twisted...

 By the way, there are a few suggestions to the main problem at #5675.

 What is a good name for a keyword option that's inserted instead of the
 `interface` (post-#7639, `address` is deprecated) when `interface=''`?

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/5263#comment:6>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica, 
and MATLAB
-- 
You received this message because you are subscribed to the Google Groups 
"sage-trac" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/sage-trac?hl=en.


Reply via email to