Use long2ip for better performance