Kodi Community Forum
Android Can I set the default network interface? - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33)
+--- Forum: General Support (https://forum.kodi.tv/forumdisplay.php?fid=111)
+---- Forum: Android (https://forum.kodi.tv/forumdisplay.php?fid=164)
+---- Thread: Android Can I set the default network interface? (/showthread.php?tid=378702)



Can I set the default network interface? - Niztimiicha - 2024-09-03

Hello, I'm running into an issue where my TV is both connected to the internet over wifi, and connected by ethernet to my PC which is a local server for content.

The issue is that with this setup, Kodi accesses my NFS share over the wifi connection, and the only way I can figure out to make it use ethernet is to turn off the wifi on the TV.

Is there a way to force Kodi to only use the ethernet connection, while still being connected to wifi for other things?

Thank you.


RE: Can I set the default network interface? - fritsch - 2024-09-04

You have to either use Ethernet only or use a different subnet not reachable over wlan towards your PC.

Kind of odd setup you have there. Best would be to simple use the Ethernet cable connected to your router /switch only, with Internet and local ips coming via this connection.

That you have two connections into the same.subnet is a misconfiguration.


RE: Can I set the default network interface? - Niztimiicha - 2024-09-04

Let me clarify, the TV is not connected to the router/switch with a cable, it is connected to my PC with a cable. It is also connected to the internet over wifi. Is this really such a strange setup?


RE: Can I set the default network interface? - fritsch - 2024-09-05

Depends on your subnet configuration.

If your PC non-routed network is: 10.0.0.1/24
Your router: 192.168.0.1/24

that would properly work from a subnet point of view as the 10.0.0.1 address would not be routed via the router.

The more important thing is: Does it work from Android OS? Kodi is quite limited on Android to what the OS has configured.


RE: Can I set the default network interface? - fritsch - 2024-09-05

Also post your Debug Log - we log out the default network and such. Though after looking into the code I am afraid, that it might not work properly, while we configure All available network interfaces. One chance to do so: OS mounts - then kodi does not need to care about your network.

Yeah - Debug Log first - turn it on, restart, post the log.