2016-10-22, 20:21
(This post was last modified: 2016-10-22, 20:35 by mveras1972.)
I wish people would stop saying this is a cosmetic problem. There are real network issues here due to this bug in Kodi, which is much older than what I thought. In my case, I just installed Kodi 17 Beta 3 on my new Amazon FTV using ethernet rather than WiFi. As a result, I cannot SMB into my home server from Kodi, whereas from ES Explorer and other apps, the FTV connects to my SMB share with no problems. So I am able to isolate this bug to Kodi.
As a computer technician, I can understand how applications, if they have a bug, can refuse to use the correct network interface. The Amazon FTV has two network interfaces, one is Wireless and the other one Wired, and each has their individual MAC address and can have their own IP address. When you disconnect the Ethernet cable, the Amazon FTV automatically switches to WiFi mode, and when I do this there are no issues with Kodi. Kodi reports the correct IP, and SMB shares from local servers work fine. However, when connecting an Ethernet cable, the FTV stops using WiFi automatically, and it self-assigns the 192.168.49.1 address everyone is seeing to the WiFi interface. From the AFTV interface, you cannot see this IP address because it hides it because it is not supposed to be used. However, the WiFi radio on the AFTV is still active and can be detected by Kodi. Apparently, Kodi has a preference for using WiFi over Ethernet. Maybe this is based on hardware enumeration by the Android OS in the AFTV, and so Kodi gets confused and tries to access the network using the wrong interface (WiFi) because AFTV self-assigns an IP to the WiFi interface.
The first time I noticed this was a network issue was when I tried to add a new network source in the Kodi file manager, and using the server name, it could not find it, but if I used the server's IP address, it found it. When we look at our Kodi network settings, it has an IP of 192.168.49.1 IP address and no gateway, however it has a correct DNS server IP. That explains why the problem happens. It makes perfect sense that if you are coming from a 192.168.49.x subnet and want to connect to something in the 192.168.1.x subnet with no gateway address, then the destination IP is not found. From the Amazon FTV interface, you can match the MAC address reported by Kodi, to the WiFi interface in the Amazon FTV network settings. The MAC address for the Wired connection of the AFTV is all I can see in my network router, but that MAC address is nowhere to be found in Kodi, meaning that Kodi is just using the wrong interface, which means network problems. So this is NOT a cosmetic issue. This means that Kodi is insisting on using the WiFi interface, which has no real connection to the rest of the network, and therefore we have these problems. This is why we can declare with confidence this is a bug in Kodi. An app should be able to manage its way to use the correct network interface if the first interface is not working correctly, or at least offer some menu option to allow the user to choose the correct interface.
Since Kodi doesn't offer that option, the solution here would be to somehow turn off the WiFi radio completely on the AFTV so that applications like Kodi don't get confused and only see one network interface, the Ethernet, and skip the WiFi interface entirely. Now, how to do this? The Amazon settings have no way to turn off the WiFi radio from the UI. However, I bet there must be a way to do this if we telnet or SSH into the AFTV via the command line. After all, this is Linux at its core.
I have no interest in using WiFi on the Amazon FTV just because Ethernet delivers much more consistent video streaming performance. We know the remote uses Bluetooth so hypothetically it should not have an effect if we turn off the WiFi radio. The Bluetooth and WiFi MAC addresses should be different. However, some wireless chipsets have both WiFI and Bluetooth in the same chip, and if we turn off WiFi, it can also turn off Bluetooth rendering the remote useless. If that's the case, one can get a Microsoft Media Center remote, which comes with a IR receiver and connect that to the AFTV USB port, and use the Media Center remote to operate the AFTV.
I have some homework to do and if I discover solutions from what I explained here, I will definitely post an update.