[BangPypers] mac IP
Sateesh Kumar
sateeshpyper at gmail.com
Fri Apr 15 12:18:48 CEST 2011
On Fri, Apr 15, 2011 at 11:01 AM, Nitin Kumar <nitin.nitp at 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
More information about the BangPypers
mailing list