Re: Basic Example Question

Irmen de Jong <irmen-qWit8jRvyhVmR6Xm/[email protected]>
Newsgroups gmane.comp.python.pyro
Message-ID <[email protected]>
Please try not to post HTML mails to this mailing list, if possible.

On 2012-09-25 14:51, TCG TCGUtility wrote:
> I think I have a network issue but I just want to be sure I'm doing
> completely the right thing.

You're doing the right thing, but you failed to notice that the Pyro 
daemon strictly binds to localhost by default, because of security 
reasons. This means you can't access it from a place other than the 
local machine it is running on.

See 
http://packages.python.org/Pyro4/tutorials.html#running-it-on-different-machines
and http://packages.python.org/Pyro4/servercode.html#creating-a-daemon

So on your server you probably want to create a deamon like this 
instead:

daemon = Pyro4.Daemon(host="199.88.77.66")

Fill in the correct ip address or hostname of the externally visible 
network adapter.
If you don't provide the host parameter, Pyro binds the daemon on 
localhost.

Irmen.


------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.