Broken pipe error

When I try to connect my Apple TV 1 Gen (XBMC Gotham OS) with my iMac (Yosemite OS) I receive the error “Broken pipe”.
Someone can tell me exactly how I can fix it ?
Many thanks !