On Fri, Apr 15, 2011 at 11:01 AM, Nitin Kumar <nitin.n...@gmail.com> wrote:
> the reason for the same is: > > We got to machine setup, one is US and one in India, according to machine > location we need to use local server. > So I was looking for IP which help me differentiate the position of client > Machine to use that to chose server. > > thanks > Nitin K > Usually inside the corporate network there are subdomains that are specific to each site (say for example the FQDN for a machine at Bangalore site would be something like machine_name.blr.compnay.com ). Can you use socket.getfqdn() and base your decision on the results you get ? reg, sateesh _______________________________________________ BangPypers mailing list BangPypers@python.org http://mail.python.org/mailman/listinfo/bangpypers