Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Samsung Remote Client: disconnected from *ip* #2

Open
samuel-larsson opened this issue Jan 28, 2016 · 30 comments
Open

Samsung Remote Client: disconnected from *ip* #2

samuel-larsson opened this issue Jan 28, 2016 · 30 comments

Comments

@samuel-larsson
Copy link

I can't get it to work at all. My TV's IP is correct in config.json. When I try to turn it on, nothing happens. When I try to turn it off (wether it's on or off already), I get:
Samsung Remote Client: disconnected from 192.168.1.125:55000
in the console.

Any ideas?

@Irish-link
Copy link

Same issue here. I did a port scan and found that 55000 is in fact open along with a good amount of others. My first use i told the TV to allow the control of it so i'm not sure what might have happened.

@PilotConway
Copy link

I have the same issue here.

I looked in the settings on the TV and permission is set to allow control. I've also tried a few other apps in the app store and they all work without issue so I know I can remotely control the TV.

The other apps do mention that you can only use remote control to turn off the TV, you can't turn it on, but even still homebridge isn't working to turn it off.

@johnschult
Copy link

Same problem here.

@stelfrich
Copy link

Got the same problem 👍

@szerglyiphone
Copy link

I have a same problem any update about that?

@Irish-link
Copy link

So... For me what seemed to be happening is that it was doing this because of my style of tv. The other issue #1 seemeds to have fixed it for me. The original reason i didn't try it was because it seemed to be a seperate issue. This fixed it for me and i was able to turn off the tv with this fix.

@craigdent
Copy link

Any update on how to fix the Samsung remote client: disconnected issue

@szerglyiphone
Copy link

Hey Guys!

I have a 4K Samsung TV, HU6900 and I see the port is different. I check this, and I have 52345 port for allshare not 55000, anyway still not working. You can change your port a ./usr/local/lib/node_modules/homebridge-samsungtv/node_modules/samsung-remote/lib :)

15500/tcp open  unknown
52345/tcp open  http     Samsung AllShare httpd

I tired the KEY_POWEROFF too but nothing... :/ #1

@davidbutler62
Copy link

I have the same problem. I think the issue is with the Content Sharing settings on the TV itself..

Under Allshare settings > content settings I see:

NodeJS Samsung Remote 127.0.0.1 Allowed

I believe this is the problem. 127.0.0.1 should be replaced with the IP on my Raspberry Pi homebridge box.

Is there anyway to edit the address in the TV? The only option i can see is to Allow, Deny or Remove

@craigdent
Copy link

david,
did you try this solution and did it work?

@davidbutler62
Copy link

no, because there is no way to change the allowed IP address in the Samsung TV setup menu.

It seems that the homebridge samsung TV plugin provides the loopback address instead of it's real ip address to the samsung tv the first time it connects

@craigdent
Copy link

so once 1 device connects to the Samsung it cant be changed or edited?
even if clicked disallow cant allow it later?

@D1ag0nall3y
Copy link

Not to reopen, but it hasn't been resolved. I am also experiencing this issue. Wondering if there is any plans on future development/updates to resolve this issue or if this is something TV specific and cannot be fixed with an update. Any input would be great.

@SRv6d
Copy link

SRv6d commented Apr 23, 2016

@Danimal4326 Same here. I get 'Samsung Remote Client: disconnected from ...' Im using a UE48HU7500 Samsung 4K TV.

@gewoondemax
Copy link

Well here's the same problem, i tried to change it in Json and no work! what is happening? however All share sees the 127.0.0.1 NodeJS ... so there should be communication right? what about the Samsung Remote, this node is automatically installed with i installed version @0.0.5 ....

@socialstijn
Copy link

Did anyone find a fix yet? getting the same issue.

@socialstijn
Copy link

Thanks, the issue seems to be that the IP is not being broadcasted correctly. It does connect the first time, but then doesn't work.

@ryck
Copy link

ryck commented Aug 9, 2016

Same here, with a KS8000. Apparently, the protocol is not the same anymore (ie, the port is no longer 55000), and is probably encrypted now. I guess we will need to wait until someone cracks it :(

@Astroman
Copy link

Astroman commented Aug 13, 2016

Same with me on my KS8000. However, I also have the problem on my C8000 so I don't think it is only due to a change in protocol.
Edit: Implementing the solution to issue 4 allowed me to turn the power off on my C8000 but not my KS8000 so it may indeed be a protocol issue.

@apwelsh
Copy link

apwelsh commented Aug 17, 2016

I had the issue, and looked at the source. The node script only implements one command, POWER. Most models require POWEROFF or POWERON (poweron does not typically work, since the TV disconnect network when it sleeps). I wonder is the dev is open to my making the necessary fixes.

open the .../node_modules/homebridge-samsungtv/index.js
and change KEY_POWER to KEY_POWEROFF.

The volume and channel changing keys are not implemented, they are currently just wrappers for future support.

@Astroman
Copy link

I don't know if this helps, but the iOS app myTifi is able control my UN65KS8000, including turning it on. Therefore, it is indeed possible. :)

@apwelsh
Copy link

apwelsh commented Aug 17, 2016

Yes, it is possible. Generally, only works for those TVs that are connected via ethernet (not wifi), and that power off does not put ethernet to sleep. It has been confirmed that there are many models that this works on. And now we have another to add to the list.

I actually forked this project, modified the source to support both on/off commands as well as return off as a staus instead of an error when determing if tv is off. After pushing my changes to github, I even created a pull request, for the dev to merge my changes, should he desire. If you want to try my changes, my account on github is apwelsh

@ryck
Copy link

ryck commented Aug 17, 2016

Yeah, the official app also works, so we know it's possible, but apparently they changed the protocol, and that's why this code is not working anymore

@apwelsh
Copy link

apwelsh commented Aug 17, 2016

The official version behaves for me as reported in this thread -- it does nothing but report a disconnect. I have a UN55ES7150 which does have the prior generation GUI. The only way to know if the protocol changed, or this this is simply a command error, is to either try my version, or sniff the network amd see what is there. There mere fact the TV asks to accept the remote, suggests the protocol at issue in the report is the correct one.

@nunofgs
Copy link

nunofgs commented Oct 9, 2016

Yeah, the official app also works, so we know it's possible, but apparently they changed the protocol, and that's why this code is not working anymore

Is anyone working on dumping the new protocol?

@apwelsh
Copy link

apwelsh commented Oct 9, 2016

I have a UN55ES7150. This plugin did not work for me, so i ran a packet sniffer (WireShark) on the official app. I found that the power command being used doesnt work, and so I changed the plugin to use the PWROFF command instead of the PWR command. Now it works just fine for me.

I tried addressing this and was told that I am wrong and that it uses a new protocol. I suggest you try using the doscreet power commands.

@ryck
Copy link

ryck commented Oct 10, 2016

@apwelsh looks like your UN55ES7150 is not a 2016 model, so is still using the old protocol (well, or some version of it), and that's why is working for you at some level...
For the new TVs (2016 models, like KS8000) it doesn't work at all, because the protocol has changed

@kyleaa
Copy link

kyleaa commented Oct 22, 2016

the 2016 protocol appears to use websockets with JSON. I was able to get this working on my 2016 model (UN60KS8000). published https://github.com/kyleaa/homebridge-samsungtv2016/blob/master/index.js but YMMV.

I connected with ethernet and implemented power on with wake-on-lan, siri is able to turn off and on my TV now. I presume if you connected with wifi only power off would work. Tested the KEY_POWERON/KEY_POWEROFF combo, they were not supported. KEY_POWER is the only one it will accept.

@hogendoorn
Copy link

Any update on this ?

@morphix9
Copy link

As it seems there is no fix for that. Are you guys using another plugin for Samsung?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests