#100 Client config file option to explicitly set host IP address

v2.0
open
7
2010-06-02
2010-06-02
Seth Remington
No

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()
26
27 log.info("DCS server sees us at address %s.", address)
28
29 Pyro.core.CallbackObjBase.__init__(self)
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

Discussion