Apple TV MediaMaster Server & XBMC Connection Problem

Discussion in 'Jailbreaks and iOS Hacks' started by Boogsephine, Dec 3, 2014.

  1. Boogsephine macrumors 6502

    Joined:
    Feb 28, 2011
    #1
    Greetings all,

    I was running 5.1 for the longest on my jailbroken Apple TV and finally had to update to I think it was 5.3. The restore and jailbreak went just fine but I cannot for the life of me get my Apple TV to connect to my shared folder using MediaMaster Server on my iMac. I have the exact same settings as before but I keep getting "Could Not Connect To Server" when I hit my iMac link in the sources in XBMC.

    I have my IP address set to static on my iMac so I know it's not the IP problem. When I click Secure HTTP on MediaMaster, it doesn't even try to connect, when I uncheck it it'll try to connect for about 10 seconds and then errors out.

    I've attached two screen shots of my MediaMaster server as well as the settings I have in the sources for XBMC.

    Any help here would be greatly appreciated! I know it's probably something small but after 2 hours of tinkering with it and not being able to connect, here I am!

    Thanks!

    Adam

    [​IMG]

    [​IMG]
     
  2. Berentdaan macrumors newbie

    Joined:
    Dec 28, 2014
    #2
    Same problem

    Hi there, I seem to have the exact same problem: Kodi won't connect to MediaMaster Server after an update of AppleTV jailbreak to 5.3 and installing Kodi.
    I checked the system logs on the AppleTV and on my Mac. It appears that a connection is established, but after that, a HTTP error 400 is generated bij the MediaMaster HTTP server:
    28-12-14 16:12:22,000 MediaMaster Server[8261]: HTTP Server: Error 400 - Bad Request (/)
    on the ATV in the kodi.log file I see:
    07:12:22 T:111575040 DEBUG: CGUIMediaWindow::GetDirectory (davs://USERNAME:pASSWORD@192.168.2.18:8000/)
    07:12:22 T:111575040 DEBUG: ParentPath = [sources://video/]
    07:12:22 T:804929536 DEBUG: CurlFile::Open(0x2ffa3a9c) https://192.168.2.18:8000/
    07:12:22 T:804929536 ERROR: CCurlFile::FillBuffer - Failed: HTTP returned error 400
    07:12:22 T:804929536 NOTICE: CCurlFile::FillBuffer - Reconnect, (re)try 1
    07:12:22 T:804929536 ERROR: CCurlFile::FillBuffer - Failed: HTTP returned error 400
    07:12:22 T:804929536 ERROR: CCurlFile::CReadState::Connect, didn't get any data from stream.

    It appears somehow the Kodi client tries to send an illegal HTTP request.

    Does anyone know how to fix this?

    Greetings, Berent
     
  3. Berentdaan macrumors newbie

    Joined:
    Dec 28, 2014
    #3
    I also used tcpdump on my Mac to check what packets are exchanged between the ATV and my Mac.
    Ik looks like there is really a protocol error. packets are exchanged but then a message HTTP Error 400 is sent by MediaMaster Server. See below.

    Please help!

    16:41:54.613000 IP 192.168.2.8.49260 > 192.168.2.18.irdmi: Flags , seq 1492465752, win 65535, options [mss 1460,nop,wscale 4,nop,nop,TS val 252028127 ecr 0,sackOK,eol], length 0
    E..@..@.@............l.@X.8X.......................
    ..............
    16:41:54.613179 IP 192.168.2.18.irdmi > 192.168.2.8.49260: Flags [S.], seq 2223695474, ack 1492465753, win 65535, options [mss 1460,nop,wscale 5,nop,nop,TS val 474116811 ecr 252028127,sackOK,eol], length 0
    E..@'.@.@..~.........@.l...rX.8Y...................
    .Br.........
    16:41:54.621747 IP 192.168.2.8.49260 > 192.168.2.18.irdmi: Flags [.], ack 1, win 8235, options [nop,nop,TS val 252028150 ecr 474116811], length 0
    E..4%.@.@............l.@X.8Y...s.. +.$.....
    .....Br..p
    16:41:54.621860 IP 192.168.2.18.irdmi > 192.168.2.8.49260: Flags [.], ack 1, win 4117, options [nop,nop,TS val 474116819 ecr 252028150], length 0
    E..4c.@.@.Q..........@.l...sX.8Y.....2.....
    .Br.....
    16:41:54.621936 IP 192.168.2.8.49260 > 192.168.2.18.irdmi: Flags [P.], seq 1:329, ack 1, win 8235, options [nop,nop,TS val 252028151 ecr 474116811], length 328
    ......@.@../.........l.@X.8Y...s.. +.
    .....Br.PROPFIND / HTTP/1.1
    Authorization: Basic eGJtYzp4Ym1j
    Range: bytes=0-
    User-Agent: Kodi/14.0 (AppleTV; CPU OS 6_1_4 like Mac OS X) HW_AppleTV/2.1 App_Bitness/32 Version/14.0-Git:2014-12-23-ad747d9-dirty
    Host: 192.168.2.18:8000
    Accept: */*
    Accept-Charset: UTF-8,*;q=0.8
    Content-Type: text/xml; charset="utf-8"
    depth: 1


    16:41:54.621962 IP 192.168.2.18.irdmi > 192.168.2.8.49260: Flags [.], ack 329, win 4107, options [nop,nop,TS val 474116819 ecr 252028151], length 0
    E..4..@.@..N.........@.l...sX.9............
    .Br.....
    16:41:54.625138 IP 192.168.2.18.irdmi > 192.168.2.8.49260: Flags [P.], seq 1:126, ack 329, win 4107, options [nop,nop,TS val 474116822 ecr 252028151], length 125
    E....C@.@............@.l...sX.9............
    .Br.....HTTP/1.1 400 Bad Request
    Content-Length: 0
    Connection: close
    Accept-Ranges: bytes
    Date: zo, 28 dec. 2014 15:41:54 GMT


    16:41:54.625351 IP 192.168.2.18.irdmi > 192.168.2.8.49260: Flags [F.], seq 126, ack 329, win 4107, options [nop,nop,TS val 474116822 ecr 252028151], length 0
    E..4e0@.@.P).........@.l....X.9......r.....
    .Br.....
    16:41:54.632917 IP 192.168.2.8.49260 > 192.168.2.18.irdmi: Flags [.], ack 126, win 8227, options [nop,nop,TS val 252028158 ecr 474116822], length 0
    E..4..@.@.+..........l.@X.9....... #.T.....
    .....Br...
    16:41:54.632920 IP 192.168.2.8.49260 > 192.168.2.18.irdmi: Flags [.], ack 127, win 8227, options [nop,nop,TS val 252028158 ecr 474116822], length 0
    E..4..@.@............l.@X.9....... #.S.....
    .....Br...
    16:41:54.632920 IP 192.168.2.8.49260 > 192.168.2.18.irdmi: Flags [F.], seq 329, ack 127, win 8227, options [nop,nop,TS val 252028159 ecr 474116822], length 0
    E..4n.@.@.F..........l.@X.9....... #.Q.....
    .....Br./_
    16:41:54.632983 IP 192.168.2.18.irdmi > 192.168.2.8.49260: Flags [F.], seq 126, ack 329, win 4107, options [nop,nop,TS val 474116829 ecr 252028158], length 0
    E..4..@.@............@.l....X.9......d.....
    .Br.....
    16:41:54.632983 IP 192.168.2.18.irdmi > 192.168.2.8.49260: Flags [.], ack 329, win 4107, options [nop,nop,TS val 474116829 ecr 252028158], length 0
    E..4x @.@.=9.........@.l....X.9......d.....
    .Br.....
    16:41:54.632983 IP 192.168.2.18.irdmi > 192.168.2.8.49260: Flags [.], ack 330, win 4107, options [nop,nop,TS val 474116829 ecr 252028159], length 0
    E..4..@.@."..........@.l....X.9......b.....
    .Br.....
    16:41:54.649004 IP 192.168.2.8.49261 > 192.168.2.18.irdmi: Flags , seq 1958241370, win 65535, options [mss 1460,nop,wscale 4,nop,nop,TS val 252028160 ecr 0,sackOK,eol], length 0
    .@.@..s.........m.@t.dZ........D..............
    ............Yn
    16:41:54.649032 IP 192.168.2.8.49260 > 192.168.2.18.irdmi: Flags [F.], seq 329, ack 127, win 8227, options [nop,nop,TS val 252028162 ecr 474116822], length 0
    E..4:.@.@.z[.........l.@X.9....... #.N.....
    .....Br...
    16:41:54.649164 IP 192.168.2.18.irdmi > 192.168.2.8.49261: Flags [S.], seq 218993413, ack 1958241371, win 65535, options [mss 1460,nop,wscale 5,nop,nop,TS val 474116845 ecr 252028160,sackOK,eol], length 0
    ..t.d[.....y.............
    .Br.........
    16:41:54.649200 IP 192.168.2.18.irdmi > 192.168.2.8.49260: Flags [.], ack 330, win 4107, options [nop,nop,TS val 474116845 ecr 252028159], length 0
    E..4..@.@............@.l....X.9......R.....
    .Br.....
    16:41:54.697003 IP 192.168.2.8.49260 > 192.168.2.18.irdmi: Flags [R], seq 1492466082, win 0, length 0
    E..(..@.@............l.@X.9.....P....1....
    16:41:55.651399 IP 192.168.2.18.irdmi > 192.168.2.8.49261: Flags [S.], seq 218993413, ack 1958241371, win 65535, options [mss 1460,nop,wscale 5,nop,nop,TS val 474117845 ecr 252028160,sackOK,eol], length 0
    ..t.d[...................
    .Bv.........
    16:41:55.657155 IP 192.168.2.8.49261 > 192.168.2.18.irdmi: Flags [.], ack 1, win 8235, options [nop,nop,TS val 252029178 ecr 474117845], length 0
    .... +-;.............m.@t.d[
    .....Bv...
    16:41:55.657233 IP 192.168.2.18.irdmi > 192.168.2.8.49261: Flags [.], ack 1, win 4117, options [nop,nop,TS val 474117850 ecr 252029178], length 0
    ..t.d[....=L.........@.m
    .Bv.....
    16:41:55.657311 IP 192.168.2.8.49261 > 192.168.2.18.irdmi: Flags [P.], seq 1:312, ack 1, win 8235, options [nop,nop,TS val 252029179 ecr 474117845], length 311
    .... +...............m.@t.d[
    .....Bv.PROPFIND / HTTP/1.1
    Authorization: Basic eGJtYzp4Ym1j
    User-Agent: Kodi/14.0 (AppleTV; CPU OS 6_1_4 like Mac OS X) HW_AppleTV/2.1 App_Bitness/32 Version/14.0-Git:2014-12-23-ad747d9-dirty
    Host: 192.168.2.18:8000
    Accept: */*
    Accept-Charset: UTF-8,*;q=0.8
    Content-Type: text/xml; charset="utf-8"
    depth: 1


    16:41:55.657343 IP 192.168.2.18.irdmi > 192.168.2.8.49261: Flags [.], ack 312, win 4108, options [nop,nop,TS val 474117850 ecr 252029179], length 0
    ..t.e.....<..........@.m
    .Bv.....
    16:41:55.659964 IP 192.168.2.18.irdmi > 192.168.2.8.49261: Flags [P.], seq 1:126, ack 312, win 4108, options [nop,nop,TS val 474117852 ecr 252029179], length 125
    ..t.e......=.........@.m
    .Bv.....HTTP/1.1 400 Bad Request
    Content-Length: 0
    Connection: close
    Accept-Ranges: bytes
    Date: zo, 28 dec. 2014 15:41:55 GMT


    16:41:55.660155 IP 192.168.2.18.irdmi > 192.168.2.8.49261: Flags [F.], seq 126, ack 312, win 4108, options [nop,nop,TS val 474117852 ecr 252029179], length 0
    ..t.e.....;..........@.m
    .Bv.....
    16:41:55.668961 IP 192.168.2.8.49261 > 192.168.2.18.irdmi: Flags [.], ack 126, win 8227, options [nop,nop,TS val 252029185 ecr 474117852], length 0
    .... #+..............m.@t.e.
    .....Bv.<.
    16:41:55.668965 IP 192.168.2.8.49261 > 192.168.2.18.irdmi: Flags [.], ack 127, win 8227, options [nop,nop,TS val 252029187 ecr 474117852], length 0
    E..4..@.@.
    .... #+~.....t.e.
    .....Bv.G.
    16:41:55.669043 IP 192.168.2.18.irdmi > 192.168.2.8.49261: Flags [F.], seq 126, ack 312, win 4108, options [nop,nop,TS val 474117861 ecr 252029185], length 0
    ..t.e.....;..........@.m
    .Bv.....
    16:41:55.669044 IP 192.168.2.18.irdmi > 192.168.2.8.49261: Flags [.], ack 312, win 4108, options [nop,nop,TS val 474117861 ecr 252029187], length 0
    ..t.e.....;..........@.m
    .Bv.....
    16:41:55.688985 IP 192.168.2.8.49261 > 192.168.2.18.irdmi: Flags [F.], seq 312, ack 127, win 8227, options [nop,nop,TS val 252029195 ecr 474117852], length 0
    .... #+u.............m.@t.e.
    .....Bv.W5
    16:41:55.689091 IP 192.168.2.18.irdmi > 192.168.2.8.49261: Flags [.], ack 313, win 4108, options [nop,nop,TS val 474117881 ecr 252029195], length 0
    ..t.e.....;o.........@.m
    .Bv.....
    16:41:55.716986 IP 192.168.2.8.49261 > 192.168.2.18.irdmi: Flags [F.], seq 312, ack 127, win 8227, options [nop,nop,TS val 252029219 ecr 474117852], length 0
    .... #+].............m.@t.e.
    ...#.Bv...
    16:41:55.717078 IP 192.168.2.18.irdmi > 192.168.2.8.49261: Flags [.], ack 313, win 4108, options [nop,nop,TS val 474117908 ecr 252029195], length 0
    ..t.e.....;T.........@.m
    .Bw.....
    16:41:55.732978 IP 192.168.2.8.49261 > 192.168.2.18.irdmi: Flags [R], seq 1958241683, win 0, length 0
    E..(k.@.@.Ip.........m.@t.e.....P...p|..p
     

Share This Page