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

Unable to connect to service. #39

Open
knoxbear opened this issue Jan 29, 2019 · 15 comments
Open

Unable to connect to service. #39

knoxbear opened this issue Jan 29, 2019 · 15 comments

Comments

@knoxbear
Copy link

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
Copy link
Author

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.

@cjmurph
Copy link
Owner

cjmurph commented Jan 29, 2019

Check your firewall.

@knoxbear
Copy link
Author

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

@jstevenson72
Copy link

jstevenson72 commented Jan 30, 2019 via email

@knoxbear
Copy link
Author

Yes, same machine.

@cjmurph
Copy link
Owner

cjmurph commented Jan 31, 2019

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

@jstevenson72
Copy link

jstevenson72 commented Feb 1, 2019 via email

@knoxbear
Copy link
Author

knoxbear commented Feb 1, 2019

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

@TechieGuy12
Copy link

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

@knoxbear
Copy link
Author

knoxbear commented Feb 1, 2019

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

image

@Eds1989
Copy link

Eds1989 commented Apr 5, 2019

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?

@goldenpipes
Copy link

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.

@Dramion
Copy link

Dramion commented Apr 18, 2023

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.

@cjmurph
Copy link
Owner

cjmurph commented May 13, 2023

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.

@mbutodembuti
Copy link

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!

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

8 participants