Connection refused when trying to update library with json
#1
Hello.

I am trying to update my xbmc library, from my raspberry pi on the same network.

i have made a bash file like this:

Code:
#!/bin/bash

USERNAME=xbmc
PASSWORD=xbmc
SERVER=192.168.1.50
PORT=80

wget --user=$USERNAME --password=$PASSWORD --delete-after --header='Content-Type: application/json' --post-data='{"jsonrpc": "2.0", "method": "VideoLibrary.Scan"}' http://$SERVER:$PORT/jsonrpc

but when i execute it i get:

Code:
root@raspberrypi:/opt# ./update.sh
--2014-05-20 13:46:55--  http://192.168.1.50/jsonrpc
Connecting to 192.168.1.50:80... failed: Connection refused.
root@raspberrypi:/opt#

I also tried changing the port to 8080.

I have enabled xbmc to be controled http, and also enabled "use a HTTP-proxyserver for internet access. Why is the connection getting refused??

I can goto:
http://192.168.1.50:80
and enter xbmc as user and pass.. no problem there!

Thanks alot for any help.. this is driving me nuts!
Reply

Logout Mark Read Team Forum Stats Members Help
Connection refused when trying to update library with json0