Under some unusual network circumstances (i.e. VPN, proxy) the IP address that the DCS server sees the client coming from may not be an address that the client can bind to. Perhaps an explicit config file option to set the address in those cases would be helpful. (For Windows perhaps even a way to set it to None or "" and let the OS determine would be useful).
See sndcs_clientSubscriber.py and original Pyro/EventService/Clients.py
23 # Let's get our IP address
24 DCSServer = Pyro.core.getProxyForURI(self.formatPyronameString(self.namespace, ["DCSServer"]))
25 address, port = DCSServer.clientIPAddress()
27 log.info("DCS server sees us at address %s.", address)
30 Pyro.core.initServer(banner = 0)
31 Pyro.core.initClient(banner = 0)
32 daemon = Pyro.core.Daemon(host=address) # This is really all we changed
Log in to post a comment.