I submitted [verbose] logs from my AppleTV that show me trying to make a timeline connection from my SmartThings App. My source is available here: https://dl.dropboxusercontent.com/u/18989001/plex-manager.groovy
I was able to packet sniff a connection from another device and confirm that it is sending the timeline request in the same manner, and my Plex Media Player instance works well with this same code and is able to connect to back to the device fine.
The data is from ~7:50pm ET on 26 January 2017 from my account [Ph4r] on an Apple TV.
I get an HTTP 500 back from the Player that it was unable to open the connection, but I’m not sure why. Other devices on my local subnet are able to connect back to my application fine.
[index:18, mac:086698912345, ip:0A0A0A70, port:7EF4, requestId:d0b7ee6f-50fe-401d-8d98-f4805f312345, headers:[x-plex-client-identifier:0A8567E3-26C4-484C-903F-E1CA9B012345, content-length:233, access-control-expose-headers:X-Plex-Client-Identifier, http/1.1 500 internal server error:null, connection:Close, access-control-allow-origin:*, access-control-max-age:1209600, content-type:text/html; charset=utf-8, date:Mon, 23 Jan 2017 23:59:38 GMT, server:PMKWebServer, access-control-allow-methods:OPTIONS,HEAD,GET,POST,DELETE,PUT], body:HTTP Error 500
HTTP Error 500: Failed to forward request
[NSURLErrorDomain] Could not connect to the server. (-1004)
, header:HTTP/1.1 500 Internal Server Error
Server: PMKWebServer
Content-Type: text/html; charset=utf-8
Access-Control-Expose-Headers: X-Plex-Client-Identifier
Access-Control-Max-Age: 1209600
Access-Control-Allow-Origin: *
Access-Control-Allow-Methods: OPTIONS,HEAD,GET,POST,DELETE,PUT
Date: Mon, 23 Jan 2017 23:59:38 GMT
X-Plex-Client-Identifier: 0A8567E3-26C4-484C-903F-E1CA9B012345
Content-Length: 233
Connection: Close, status:500]
Note: in the error excerpt above, I have replaced the ends of potentially sensitive data with 12345.