Kodi Community Forum

Full Version: problem with web service 8080
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
Hi,

I'm running kodi 17.6 on ubuntu 18.05 x86_64.

I have enabled web service enabled for http port 8080 and in kod log I can see that service starts:
Quote:...
23:37:29.140 T:140496019682496  NOTICE: CWebServer[8080]: Started
...

No further messages in the log :-(

But when I start my browser on same machine with http://localhost:8080 I get an http page, but with message
Quote:Connection to server lost

Port 8080 is bind to kodi.
Quote:$ netstat -tulpen | grep 8080
(Es konnten nicht alle Prozesse identifiziert werden; Informationen über
nicht-eigene Processe werden nicht angezeigt; Root kann sie anzeigen.)
tcp        0      0 0.0.0.0:8080            0.0.0.0:*               LISTEN      1000       38671247   16267/kodi.bin      
tcp6       0      0 :::8080                 :::*                    LISTEN      1000       38671246   16267/kodi.bin  

I also tried different other ports. Same issue.

Any idea, what's going wrong ?
Perhaps you forgot to enable the ports 8080, 9090 and 9777 in your UFW firewall? Those are the ports used in Kore's remote settings.
Hi,

no known firewall running.
Quote:$ sudo ufw status
[sudo] Passwort für xxx:
Status: Inaktiv
Can you upgrade to version 18 of kodi, we changed the way we bind to interfaces in there.

Edit: Also provide ifconfig output please
@fritsch webserver (libmicrohttpd) always did the binding correct.
The previous way (v17) of binding tcp ports also worked if binding to the world (INADDR_ANY or IN6ADDR_ANY_INIT) which happens here.
So @Rechi what do you think is the issue?
(2018-07-21, 23:57)rb01 Wrote: [ -> ]But when I start my browser on same machine with http://localhost:8080 I get an http page, but with message, Connection to server lost

I was too focused on the webserver, but the site actually gets loaded only websocket connection fails.
The issue sounds like what was fixed at https://github.com/xbmc/xbmc/pull/13012 for v17.6.

Please post netstat -lt | egrep "8080|9090|9777" and a complete Debug Log (wiki) where you open the webinterface.
Hi all,
Quote:$ netstat -lt | egrep "8080|9090|9777"
tcp6       0      0 ip6-localhost:9090      [::]:*                  LISTEN     
Quote:$ netstat -tulpen | egrep "8080|9090|9777"
(Es konnten nicht alle Prozesse identifiziert werden; Informationen über
nicht-eigene Processe werden nicht angezeigt; Root kann sie anzeigen.)
tcp        0      0 0.0.0.0:8080            0.0.0.0:*               LISTEN      1000       46991498   16433/kodi.bin      
tcp6       0      0 ::1:9090                :::*                    LISTEN      1000       46988966   16433/kodi.bin      
tcp6       0      0 :::8080                 :::*                    LISTEN      1000       46991497   16433/kodi.bin      
udp        0      0 127.0.0.1:9777          0.0.0.0:*                           1000       46992499   16433/kodi.b
kodi.log
Quote:~/.kodi$ /sbin/ifconfig
enp5s0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 192.168.178.27  netmask 255.255.255.0  broadcast 192.168.178.255
        inet6 fe80::ed73:37ac:fad:b8d6  prefixlen 64  scopeid 0x20<link>
        ether 54:04:a6:ef:b8:00  txqueuelen 1000  (Ethernet)
        RX packets 11244726  bytes 9046657067 (9.0 GB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 9327079  bytes 4026710762 (4.0 GB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

lo: flags=73<UP,LOOPBACK,RUNNING>  mtu 65536
        inet 127.0.0.1  netmask 255.0.0.0
        inet6 ::1  prefixlen 128  scopeid 0x10<host>
        loop  txqueuelen 1000  (Lokale Schleife)
        RX packets 4878887  bytes 1498708597 (1.4 GB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 4878887  bytes 1498708597 (1.4 GB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
Sorry forgotten: I added it in browser firefox
**added -->opened
In the meantime I've tried Chromium browser. But same result: Connection to server lost
For completeness: Connecting from a remote machine, e.g. your mobile phone with the enp2s0 ip - does that work?

Edit:
Quote:11:36:24.663 T:139759559541952 NOTICE: Kodi from Debian compiled from 2:17.6+dfsg1-1ubuntu1 by GCC 6.4.0 for Linux x86 64-bit version 4.15.15 (265999)

^^ Sorry, those guys fuck it up every time they touch kodi. Any chance to test it with our ppa instead?
Hi,

No. Connection to http://192.168.178.27:8080 is not working.
But I think this belongs to configuration that "remote control with other computers" (I hope is correct translated, because I have german version) is switched off.
Only "remote control with this computer is allowed" is switched on.

So do you think it is because of ubuntu version and I should try version from kodi ppa ?
I can try this, when I didn't get a solution with current installation here.
For now I don't know what the problem is. Therefore I want to rule out "external failure" means: debian ships > 24 patches in their kodi which do a lot of things that are not supported by us and even worse, we cannot even verify what is happening as they remove certain libraries shipped by us and replacing them with their system libs.

To be honest: I don't know - but it's worth a try.

Make sure to remove every kodi package before adding the ppa and installing kodi from there, please. They even changed their packaging so it is incompatible to ours.

The port you obviously already changed to e.g. 8081 or something like that, right?
Hi all,

thanks all for your help.

Now I found another posting here (I have not found before): same problem
So I will remove kodi and will install from ppa.

Keep you updated.
Pages: 1 2