Re: Running it on different machines
Irmen de Jong <[email protected]> Sat, 19 Oct 2013 10:32:13 +0200
| Newsgroups | gmane.comp.python.pyro |
|---|---|
| Message-ID | <[email protected]> |
On 19-10-2013 9:16, Richard van Bemmelen wrote: > I started the name server on my Ubuntu machine with -n host_name. > (BTW, the manual is a bit confusing here, because it seems that the host name can be an > arbitrary string, but that does not work. I just put the ip address here, and that was > accepted). > > But now trying to locate the name server from my Mac fails. > It gives : "failed to locate the nameserver". For nameserver discovery to work, the machines need to be able to send and receive UDP broadcast packets. Make sure you start a broadcast responder with the name server, and that the UDP packets aren't filtered by a router or firewall. The manual tells you that the UDP broadcast responder will only be started if the hostname that the name server binds on, is different than the loopback adapter. You can see if it is started or not by looking at the text that is printed when the name server starts. It should read something like this: [D:\]py -m Pyro4.naming -n neptune Broadcast server running on 0.0.0.0:9091 NS running on neptune:9090 (192.168.178.27) URI = PYRO:Pyro.NameServer@neptune:9090 Depending on your network configuration you may need to also use the --bchost and/or --bcport options to change the address the broadcast responder listens on. The default as printed above works fine on my simple LAN. > I can ping both machines, although there are in a different address range. Being able to ping is not enough; UDP broadcast packets are different. When they are in a different address range, there's usually a gateway/router involved, and usually, these don't relay UDP broadcast packets across segments. Irmen ------------------------------------------------------------------------------ October Webinars: Code for Performance Free Intel webinars can help you accelerate application performance. Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from the latest Intel processors and coprocessors. See abstracts and register > http://pubads.g.doubleclick.net/gampad/clk?id=60135031&iu=/4140/ostg.clktrk