The purpose of the IP address is to assist in knowing the location of the student. The role of Moodle is to lower teacher management workload. Again, it will empower the students’ autonomy and monitor their progress.
The IP address reduces the chances of cheating since Moodle will know the exact spot that the student is taking the exam.