Implement getLocalIpAddress