Skip to content

Port ### already in use

moodyblue edited this page Mar 8, 2018 · 21 revisions

PlexConnect launches two services by default:

  1. DNS - intercepts DNS requests from ATV, routes trailers requests to the WebServer and the rest to a real DNS (ip_pms= parameter in Settings.cfg). This service requires port 53 (by default)
  2. WebServer - receives trailers requests from ATV and processes them. This service requires ports 80 and 443 (by default)

If you install PlexConnect in a device where another service is listening to any of these ports, PlexConnect will not start with the default parameters. One possible (and simple) solution is to install a docker version of PlexConnect (such as https://hub.docker.com/r/izzno/plexconnect/) so that you don't have port conflicts, but there are other options:

Port 53

A DNS server is already running. You have two options:

  1. If you don't need this DNS service, then disable it (in Ubuntu check this for specific information about dnsmasq and how to disable it)
  2. If you need it, then parametrize it to route trailers.apple.com and atv.plexconnect to the IP where PlexConnect is listening, and disable PlexConnect's DNS service (using the enable_dnsserver = False parameter in Settings.cfg)

Ports 80 and 443

If a program is already using port 80 (or ports 80 and 443) there are three options:

  1. Disable it
  2. Run it on different ports
  3. Run PlexConnect's WebService on different ports (such as 81/444) and establish reverse proxy rules

To identify which programs are using these ports you need to open a command line and give one of these commands:

  • Windows netstat
  • Linux, OSX and NAS lsof -i -P

These are likely candidates:

  • WWW Publishing Service (Windows 10)
  • Web server, including Internet sharing (OSX, Windows, Linux, NAS)
  • IIS (Windows)
  • Web management UI (NAS)
  • Apache
  • Nginx
  • Skype

Some of these programs can be disabled, others (such as NAS web UI's) can be parametrized to use different ports, but when Apache or Ngingx are used it's often necessary to establish reverse proxy rules (configuration samples included in /support folder).

[Return to Install Guide] (https://github.com/iBaa/PlexConnect/wiki/Install-Guide)

© 2013 PlexConnect Team