Enable Report Server in Moodle – Allow the IP of the Server that Processes the Schedule


The badiunet plugin on the Moodle platform is the connector to the Badiu MReport reporting service platform. Starting June 17, 2024, a new version was released in which all communication originating from the service platform must be authenticated not only by the token but also by the source IP.

 

This new version of the plugin means that the IP of the reporting service platform must be previously registered in the plugin within Moodle to ensure proper operation. When installing the badiunet plugin, it automatically points to the server at the address: https://mreport1.badiu.com.br 

The IP of this server is retrieved and stored in the database. However, the service that processes the schedules is on another server with a different IP, which is not automatically registered after installation until now. This means that scheduling in the MReport system will not work, as the server that processes them does not have its IP allowed within Moodle.

Allowing the schedule server’s IP in your Moodle

To allow the schedule server’s IP in your Moodle, follow the steps below:

1- Log into Moodle with an administrator profile.

2 - Clear the Moodle cache.

To clear the cache, navigate to:
Site administration > Development > Purge caches 

or go to MOODLE_URL/admin/purgecaches.php















Click the Purge all caches button

3 - Access the badiunet plugin configuration panel.

Navigate to: Site administration > Plugins > Local plugins > Badiu.Net


or go directly to MOODLE_URL/admin/settings.php?section=local_badiunet


After doing this, the badiunet plugin configuration form will open. Locate the field: IP of remote servers allowed to connect to Moodle.

This field, by default, already includes the IP of the service platform that generates the reports. Add the new IP: 54.156.143.202 to this field to allow access to the schedule server.

 The IP must be added on the same line, separated by a comma, with no line break, as illustrated in the following figure. 

After adding the IP, click the Save changes button.

Configuration Result

After performing this configuration, the plugin will be enabled to accept remote requests from the schedule server. Thus, the background processing carried out by the schedule server will start working correctly.

Update the plugin

This feature was released in version 1.4.1 on July 17, 2024. Its operation was consolidated and adjusted in version 1.4.2, released on August 7 of the same year. If you are using version 1.4.1, update to version 1.4.2 or later to ensure the correct functioning of the schedule system. If you are using an earlier version or version 1.4.1 itself, the schedule system works with background requests; however, to increase the security layer, it is recommended to update to the latest version. Click here to see how to update the plugin.