Kodi Community Forum

Full Version: problem with new json web server
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hello

I have this strange problem with xbmc svn.

Branch: pvr-testing2
Revision: 29790
Platform: linux 32 bit
Kernel: 2.6.32

I can connect to webserver if i type : telnet localhost 8080

But if i put telnet 127.0.0.1 8080, or telnet 192.168.1.8 8080 , it can't connect.


When i start the xbmc webserver, here is the log:

Code:
15:30:38 T:3019069312 M:1099739136  NOTICE: Webserver: Starting...
15:30:38 T:3019069312 M:1099739136  NOTICE: WebServer: Started the webserver
15:30:38 T:3019069312 M:1099739136   DEBUG: CZeroconfAvahi::doPublishService identifier: servers.webjsonrpc type: _xbmc-jsonrpc._tcp name:XBMC JSONRPC port:8080
15:30:38 T:3019069312 M:1099739136   DEBUG: CZeroconfAvahi::addService() named: XBMC JSONRPC type: _xbmc-jsonrpc._tcp port:8080
15:30:38 T:3019069312 M:1099739136   ERROR: CZeroconfAvahi::addService(): failed to add service named:XBMC JSONRPC@$(HOSTNAME) type:_xbmc-jsonrpc._tcp port:8080. Error:Invalid Error Code :/ FIXME!


Does it talks to somebody ?

Thanks
do you see the same on trunk?
I'll give a hint on the trunk & keep you updated on this.

Thx.
Oh come on, you have enough posts so you should know how to produce a proper bugreport, You are close but one vital part is missing Wink
Here is the log file. Was in remote session when posting the first message.


http://www.pastebin.org/295948


I'm downloading trunk right now to test.

Thx.
Ok, tested with today trunk and same problem:

Quote:telnet localhost 8080
Trying ::1...
Connected to localhost.
Escape character is '^]'.
Connection closed by foreign host.

Quote:telnet 127.0.0.1 8080
Trying 127.0.0.1...
telnet: Unable to connect to remote host: Connection refused

trunk logs: http://www.pastebin.org/296960

Edit: Just saw this thread, I have the same issue with ipv6 : http://forum.xbmc.org/showthread.php?tid=71260

Quote:netstat -tpl | grep xbmc
tcp 0 0 *:53835 *:* LISTEN 16196/xbmc.bin
tcp 0 0 *:63265 *:* LISTEN 16196/xbmc.bin
tcp 0 0 *:9090 *:* LISTEN 16196/xbmc.bin
tcp6 0 0 [::]:http-alt [::]:* LISTEN 16196/xbmc.bin

Forcing /etc/sysctl.d/bindv6only.conf to 0 does the trick.