webosbrew/dev-manager-desktop

Can't add device

ralikaro opened this issue · 24 comments

Describe the bug.
A clear and concise description of what the bug is.

To Reproduce
Steps to reproduce the behavior:

  1. Go to 'Setup device' using Developer mode.
  2. Add IP
  3. Add passphrase
  4. Click finish
  5. Fails to connect and shows a screenshot of the enbling key (which is already enabled).

Expected behavior
Connect to TV

Screenshots
image

Additional context
I have managed to connect to the TV using a different application.
I'm also able to ping my TV, but I get a constant failure to fetch the private key.

Add any other context about the problem here.
This is my first time trying to connect.
Connecting to the same wifi network. The TV and laptop are connected to the same router via a wireless connection.

I have switched from a 5G network to a 2.4G network just to rule this out (not sure if it makes a difference).

Try going to http://<TV IP address>:9991/webos_rsa in a browser on your laptop. If you can't download the file, the problem isn't with Dev Manager.

UPDATE: I managed to resolve this by manually adding the device, and then this will fail, but it will allow me to access the screen, which will allow me to install apps.

After accessing this screen, I follow the process of adding a device again, using the same steps in the first post.

This then connected immediately, without any issues.

Hello,

I have the same problem on my LG TV with WebOS 05.50.15 (software version 4.4.2-11)
I can ping my TV. I have dev mode enabled and key server is ON. Using web-os-dev-manager 1.12.1 always fail to connect. I've tried manually using ares command, but same result.

image

Strange thing; the dev-manager application show port 9922; however on the console under which I started the application, I have the following error message:

image

So although I setup dev-manager to use port 9922, the application seems to try accessing port 9991. And my WebOS TV is not listening on that port:

image

Am I doing something wrong or is my WebOS version not supported ?

image

Thanks a lot

@wisukind

Dev Manager downloads the RSA key from an HTTP server on port 9991. This is what "Key Server" refers to.

Make sure you are using the correct IP address for your TV (which you can confirm by using a web browser to connect to port 3000 via HTTP; you should see "Hello world" if you have SSAP enabled). You can also try disabling and re-enabling Dev Mode to fix the key server.

@throwaway96

Thanks for your reply. I am using the correct IP address; confirmed with the below screenshot.

image

I have also tried to remove / re-install developper apps several times; rebooted multiple times and enabled / disabled dev mode as many times, but still no luck. I also tried to root my tv with rootmy.tv but my webos is unfortunately not vulnerable. I'm out of idea.

The only thing I havn't tried so far is to reset my TV to factory settings. Any clue or hints of what else I could try ?

Thanks a lot

Also my nmap scan gives the following results:

xxxx@RiailleBox:~/$ sudo nmap -sV 192.168.1.18
Starting Nmap 7.80 ( https://nmap.org ) at 2023-11-27 12:10 CET
Nmap scan report for lgwebostv-1.home (192.168.1.18)
Host is up (0.00073s latency).
Not shown: 994 closed ports
PORT      STATE SERVICE  VERSION
1761/tcp  open  upnp     LG WebOS upnpd (WebOS 4.1.0; UPnP 1.0)
1863/tcp  open  upnp     Platinum unpnd 1.0.4.9 (arch: i686; UPnP 1.0; DLNADOC 1.50)
3000/tcp  open  http     LG smart TV http service
3001/tcp  open  ssl/http LG smart TV http service
7000/tcp  open  rtsp     AirTunes rtspd 377.25.06
11111/tcp open  vce?
MAC Address: A8:23:FE:4B:6D:13 (LG Electronics)
Service Info: OS: Linux; Device: media device; CPE: cpe:/o:linux:linux_kernel

Service detection performed. Please report any incorrect results at https://nmap.org/submit/ .
Nmap done: 1 IP address (1 host up) scanned in 182.28 seconds

And

xxxx@RiailleBox:~/$ nmap -sT -p 9920-9922 192.168.1.18
Starting Nmap 7.80 ( https://nmap.org ) at 2023-11-27 12:13 CET
Nmap scan report for lgwebostv-1.home (192.168.1.18)
Host is up (0.00031s latency).

PORT     STATE  SERVICE
9920/tcp closed unknown
9921/tcp closed unknown
9922/tcp open   unknown

Nmap done: 1 IP address (1 host up) scanned in 0.04 seconds

I've again tried to disable / enable key server on the TV several times, but same results :-(

Most likely the dev mode app has problems. And to ensure everything's reset, you'll need to first turn off dev mode, let the device reboot, then uninstall the dev mode app and reinstall that.

If you tried that but it still doesn't work, maybe a factory reset will be the only solution. Without root we can't really figure out what's going on :(

Thanks guys. I will give it a try and let you know.

I tried uninstalling / reinstalling dev mode but no luck. I am discussing the point with LG support forum. Hopefully they may have a solution to provide before trying the factory reset.

Thanks anyway !