Adding finding local address function.