PmsService icon indicating copy to clipboard operation
PmsService copied to clipboard

Unable to connect to service.

Open knoxbear opened this issue 5 years ago • 15 comments

I never could get Plex to start automatically even when logging in, so I installed Plex Service Tray. It has been working wonderfully for years, but now it's "unable to connect to service." The settings are Address: localhost and port: 32400. When double clicking the tray icon, I receive the error message "localhost refused to connect" in Chrome.

After manually starting the Plex Server, then double clicking the icon does open Plex. Right clicking the Service Tray icon, still shows "unable to connect to service" even when Plex is running.

Any ideas on how to fix?

knoxbear avatar Jan 29 '19 13:01 knoxbear

Oops, I just realized I have an old version. Slightly embarrassed! Installed newest release and rebooted. I'm able to access my Plex library now.

But, it still says 'unable to connect to service' and the only options are connection settings, about, & exit.

knoxbear avatar Jan 29 '19 14:01 knoxbear

Check your firewall.

cjmurph avatar Jan 29 '19 23:01 cjmurph

Plex DLNA, Media Server, Scripting Host, & Tuner Service are all allowed. Is there something else that I should check?

knoxbear avatar Jan 30 '19 04:01 knoxbear

Are you running Plex and the service on the same machine?

On Tue, Jan 29, 2019, 10:50 PM knoxbear <[email protected] wrote:

Plex DLNA, Media Server, Scripting Host, & Tuner Service are all allowed. Is there something else that I should check?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/cjmurph/PmsService/issues/39#issuecomment-458811090, or mute the thread https://github.com/notifications/unsubscribe-auth/ABgCQvdc7UC4ZjVBMpUsCLUG8v0clHL4ks5vISSdgaJpZM4aYE9G .

jstevenson72 avatar Jan 30 '19 12:01 jstevenson72

Yes, same machine.

knoxbear avatar Jan 31 '19 03:01 knoxbear

The service and the tray app will need exclusions, or, you can add a rule for the port they use

cjmurph avatar Jan 31 '19 04:01 cjmurph

If they are the same machine and you specified localhost, then I wouldn't think the firewall would be blocking you. Do you have any A/V software? If so try disabling it.

On Wed, Jan 30, 2019 at 10:02 PM cjmurph [email protected] wrote:

The service and the tray app will need exclusions, or, you can add a rule for the port they use

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/cjmurph/PmsService/issues/39#issuecomment-459206770, or mute the thread https://github.com/notifications/unsubscribe-auth/ABgCQvDBoDUkpzLGxIbkKN5Y5Wo9oqfDks5vImrDgaJpZM4aYE9G .

jstevenson72 avatar Feb 01 '19 01:02 jstevenson72

Disabled Avira Free and it didn't seem to make a difference.

knoxbear avatar Feb 01 '19 13:02 knoxbear

And you can verify that the Plex server is listening on port 32400 within Windows?

TechieGuy12 avatar Feb 01 '19 15:02 TechieGuy12

Resource Monitor shows Plex Media Server.exe listening to port 32400

image

knoxbear avatar Feb 01 '19 15:02 knoxbear

I get this from time to time myself.

The service and tray work fine for ages, then suddenly the tray can no longer connect to the service, but plex itself is still accessible.

A reboot of the server resolves the issue.

Logging doesn't highlight any issue, so not sure what causes the bahaviour?

Eds1989 avatar Apr 05 '19 13:04 Eds1989

So i run into this a few times a month as well,

I kill all services, delete the Plex Service folder in Appdata\local

restart the service and all is well again. until it happens again.

goldenpipes avatar Jul 02 '22 15:07 goldenpipes

So i run into this a few times a month as well,

I kill all services, delete the Plex Service folder in Appdata\local

restart the service and all is well again. until it happens again.

Came here to say that this fixed the issue for me, all I had to do was stop the "PlexService" service then delete the Appdata folder as mentioned by @goldenpipes.

Dramion avatar Apr 18 '23 13:04 Dramion

Reading back through this I think there's some confusion around the ports and what it is you are specifying. The tray app talks to the service on it's own port. it's not the same port that plex itself is using, in fact, it can't be. The default port for the tray application and the service communication is 8787. I made it configurable in case it was already in use, but really, it shouldn't ever need to be changed. This has no bearing on the port plex itself is using.

cjmurph avatar May 13 '23 14:05 cjmurph

Reading back through this I think there's some confusion around the ports and what it is you are specifying. The tray app talks to the service on it's own port. it's not the same port that plex itself is using, in fact, it can't be. The default port for the tray application and the service communication is 8787. I made it configurable in case it was already in use, but really, it shouldn't ever need to be changed. This has no bearing on the port plex itself is using.

Thank you! This was bogging me and confusion in which port to enter in the setting was the culprit. Setting it to 8787 solved the issue!

mbutodembuti avatar May 24 '23 10:05 mbutodembuti