Network-based policies (BYOD)
In BYOD scenarios, devices are used both inside and outside of school.
A purely time-based policy assignment is often inflexible and comes with a high administrative overhead.
A proven alternative is network-based policy assignment, where policies are automatically applied as soon as a device is connected to the school network.
Detection is based on the public IP address of the network.
This approach is particularly well suited for BYOD environments, as devices are not unnecessarily restricted outside of school while administrative effort is reduced.
Basic principle
The location of a BYOD device is determined indirectly via its public IP address.
The setup consists of:
- One policy that should only apply within the school network
- One dynamic device group that collects devices based on their public IP address
When a device contacts Relution from the school Wi-Fi, Relution detects the public IP address of the school network. The device is then automatically assigned to the dynamic device group and receives the corresponding policy.
Recommended BYOD base group
Regardless of the dynamic group for the school network, BYOD devices should always be assigned to a base device group.
This group contains configurations that apply permanently, such as:
- School Wi-Fi profiles
- Required apps
- Basic restrictions that also apply outside of school
This ensures that devices remain functional at all times.
Configuring the dynamic device group
A new dynamic device group is created. Last IP address is selected as the Query category and is in as the Filter definition. The public IPv4 address or IPv4 range of the school network is entered in the IP address or CIDR field (e.g. 203.0.113.25 or 203.0.113.0/24); multiple entries are possible.
The filter must cover the public IP range of the school network.
All devices whose most recently detected IP address lies within this range are automatically added to the group.
The filter evaluates IPv4 addresses only. If a device reaches the Relution server via IPv6, its last IP address is stored as an IPv6 address and the device is not included in the group.
The IP address Relution most recently detected for a device is shown in the device details on the Network card under Last IP address, and in the column of the same name in the device list. This helps to determine the matching public range.

Updating the IP address
Relution takes the public IP address from the connection whenever the device contacts the server. This can be triggered specifically with the Refresh device info action.
An update takes place in particular in the following cases:
- When policies are executed
- During the periodic availability-check ping, if Check device availability is enabled (once per day by default, configurable via Ping interval in minutes under
Settings→Device Management; not for Android Enterprise) - Via a device group action with the CRON-scheduled trigger
- When an administrator runs the Refresh device info action for the device in the portal
- When the user triggers a refresh in the Self-Service Portal (at the earliest 5 minutes after the last refresh)
- When the user manually triggers the action in the Relution Agent via the Settings tab
Recommendation: CRON-scheduled action in the base group
In most BYOD environments, a device group action of the action type Device action with Refresh device info and the CRON-scheduled trigger is recommended. The action is created in the BYOD base group, in which the device permanently resides, and not in the dynamic IP group. A CRON action is only executed for devices that are currently members of the group. In the dynamic group, it would never reach devices outside the school network, so these would not be added to the group automatically. Using the base group ensures that devices regularly update their IP address without requiring user interaction.
Notes on using CRON actions
- Do not use very short intervals
- Avoid high execution frequencies
For example, running Refresh device info every hour for a large number of devices can lead to significant performance issues.
A moderate interval is sufficient and ensures stable operation.
In the following example configuration, the action is executed on all weekdays at 7:45, 12:45, and 14:45.

Advantages of network-based assignment (BYOD)
- No complex schedules required
- Policies only apply within the school network
- Fewer policies compared to time-based approaches
- Ideal for privately owned devices
Limitations and notes
- Devices must be connected to the school network
- The method depends on stable public IP ranges
- Only IPv4 is supported; devices that reach Relution via IPv6 are not detected
- Changes may only take effect after the next device info refresh
- If a reverse proxy sits in front of Relution, it must pass on the client IP in the
X-Forwarded-Forheader and be classified as a trusted proxy (Relution evaluates forwarded headers viaserver.forward-headers-strategy=native); otherwise Relution only sees the address of the proxy, see Trust the reverse proxy’s IP address →
Summary
Network-based policy assignment using the public IP address is a low-maintenance and reliable solution for BYOD environments.
It allows school-specific policies to be applied only when devices are actually connected to the school network, while remaining unrestricted outside of it.