Sample app PhotoShare not connecting

Hello, I tried implementing the sample app * PhotoShare

Receiver app is running on Samsung TV UE43TU7172UXXH.

Sender app has this code when initializing:

var search =;

but it never enters breakpoint inside
search.on('found', ...

So the app never gets the list of available receivers.
I tried running sender app from my PC in Chrome (both PC and TV are connected to the same network) and Chrome on my Samsung phone.

Any help appreciated.

Please send more details. I am confused now.