refactor, methods to get local ipaddr for sched proc.