[x86-64] WiFi and Ethernet at the same time

  • Hi. Ive just installed Libreelec 11 on my macmini 2012 for the first time and have ran into a problem. I use the Macmini as a mediacenter, streaming movies from my server, thats running ubuntu. The two computers are connected with an ethernet cable. I also have an USB wifi adapter in the macmini.

    The problem is using both wifi and ethernet together. It seems that if i activate the wifi adapter it will stream movies trough wifi, instead of ethernet. If i unplug the wifi, streaming blue-rays is fine, but as soon as i add the wifi, it starts to lag terribly.

    The connman_main.conf file says PrefferedTechnologies = ethernet,wifi, celluar. Is that how it should be? Are there any other solutions to get Kodi to use ethernet for streaming and wifi for internet? I really need the wifi, also to be able to use the Kore remote.

  • PrefferedTechnologies should determine which active technology has priority for the default route. If both Ethernet and WiFi have access to the internet then ethernet,wifi should result in the best connection to both internet and NAS. If only WiFi provides access to the internet wifi,ethernet will be required to ensure the default route shifts to wlan0 when the USB WiFi adapter is connected and active. If for some reason traffic to the NAS is routing over WiFi (or perhaps both) interfaces you might need to configure a static route that instructs traffic to the IP of the NAS to route over eth0. There is no way to configure that from ConnMan, but it's easily done using a system.d service, e.g. something like this (untested):

    Create the file then systemctl enable /storage/.config/system.d/static-route.service and systemctl start static-route and the connection will be reapplied on each boot.