[SOLVED] Kodi15 - Network - IP Static and Kodi slow to start
#1
Hello,

I would like to assign a static ip to my Kodibuntu server. Unfortunately my default router does not allow me to force static IP to a specific MAC address.
Thus, I have to setup the static from the server itself.

As a consequence, I have changed my network/interfaces the following way:
Code:
auto lo
iface lo inet loopback

auto eth0
iface eth0 inet static
        address 192.168.0.35
        netmask 255.255.255.0
        gateway 192.168.0.1
        network 192.168.0.0
        broadcast 192.168.0.255
        dns-nameservers *.*.*.* *.*.*.*

The server has now static IP but Kodi is very slow to start (I have a splash screen for almost 3 minutes) and then Kodi start and everything is fine.
When I try to stop my server, again shutdown is very slow

When I step back to dynamic IP, no problem Kodi loads immediately.

Any guess from where it comes from?

Thanks for your help[/code]
Reply
#2
Slowness may in many cases be caused by failing name resolution. Is '*.*.*.*' your actual nameservers or have you just anonymized them? Check /etc/resolv.conf

If you need name resolution early in the boot process it is often necessary to use /etc/hosts to resolve rather than relying on an external nameserver.

BentB
Reply
#3
Hello BentB,

Your answer gave me a lead to another idea. In fact my Kodi installation connect to a NAS for the media library and I have recently changed my NAS IP address. Thus the long start of Kodi was due to the fact it was trying to connect to the wrong address.
I have the appropriate changes in my sources.xml and everything is fine now

Thanks for your time
Reply

Logout Mark Read Team Forum Stats Members Help
[SOLVED] Kodi15 - Network - IP Static and Kodi slow to start0