Adding the function to lookup local addresses