November 3, 2026

Batocera uses ConnMan for network management. Setting a static IP with connmanctl works, but the setting does not necessarily survive a reboot.
On Batocera 43.1, the solution is to use ConnMan’s provisioning file on the boot partition.
I’m too cheap to buy a Wi-Fi card, and not quite motivated enough to run Ethernet cables through the house. Perhaps one day I’ll invest in some fibre-optic cabling. Until then, a static IP will have to do.
The Batocera machine has no Wi-Fi and connects to the network exclusively through Ethernet. I use a Cisco switch as an intermediary to connect it to my network and access it remotely over SSH. Assigning a persistent static IP address means I can always reach the machine at the same address, rather than having to discover its address each time or risk it receiving a different one through automatic configuration.
Batocera’s networking documentation describes manual network configuration using connmanctl. Another option, covered in Batocera’s NAS configuration guide, is to create a DHCP reservation based on the machine’s MAC address in your router.
In my case, however, the machine has no Wi-Fi adapter and connects exclusively through Ethernet to an unmanaged switch. With no DHCP server available on that connection, Batocera defaults to DHCP and ends up with a self-assigned address rather than one I can reliably use for remote access. I therefore needed to configure a static IPv4 address that would persist across reboots, allowing me to SSH into the machine whenever maintenance or file management is required.
This article documents an alternative: configuring the address directly through ConnMan’s provisioning mechanism.
Batocera normally mounts /boot read-only. Temporarily make it writable:
mount -o remount,rw /boot
See Batocera’s documentation on editing the boot partition for further information.
Create /boot/network-connman.config:
[service_batocera_lan]
Type=ethernet
MAC=f8:bc:12:94:3d:5e
IPv4=10.0.3.3/255.255.255.0
Replace the MAC address and IPv4 settings with those appropriate for your machine.
The ConnMan provisioning reference documents the available configuration fields and their syntax.
mount -o remount,ro /boot
reboot
After restarting, test connectivity from another machine:
ping 10.0.3.3
/boot?Batocera creates ConnMan provisioning links for both /userdata/system/network-connman.config and /boot/network-connman.config.
However, on this installation, ConnMan starts through S08connman, before the userdata storage is mounted by S11share. The boot partition is already available at that point.
Using /boot/network-connman.config therefore avoids the startup-order problem.
Tested: Batocera 43.1, Ethernet interface eth0. Static address successfully survived reboot and responded to ping with zero packet loss.