port 80: [Errno 48] Address already in use

ok so guys as the title says i have a port 80 error and i cant seem to get my plex running. heres everything you should know

 

This is everything my macs running on port 80

Amans-MacBook-Pro:~ amandevgun$ sudo lsof -i4:80
COMMAND   PID       USER   FD   TYPE             DEVICE SIZE/OFF NODE NAME
Google    251 amandevgun   73u  IPv4 0xffffff800f2046c0      0t0  TCP 192.168.1.14:50154->server1.stuifzand.eu:http (ESTABLISHED)
Google    251 amandevgun   76u  IPv4 0xffffff800f1bcc20      0t0  TCP 192.168.1.14:50155->server1.stuifzand.eu:http (ESTABLISHED)
Google    251 amandevgun  107u  IPv4 0xffffff800f9d04e0      0t0  TCP 192.168.1.14:50156->server1.stuifzand.eu:http (ESTABLISHED)
Google    251 amandevgun  112u  IPv4 0xffffff800f2cec00      0t0  TCP 192.168.1.14:50159->a23-9-97-224.deploy.static.akamaitechnologies.com:http (ESTABLISHED)
Google    251 amandevgun  121u  IPv4 0xffffff800f203fa0      0t0  TCP 192.168.1.14:50160->yyz08s10-in-f4.1e100.net:http (ESTABLISHED)
Python    294       root    4u  IPv4 0xffffff800f1bafa0      0t0  TCP 192.168.1.14:http (LISTEN)
storeagen 326 amandevgun   10u  IPv4 0xffffff800f204de0      0t0  TCP 192.168.1.14:49920->a72-247-8-88.deploy.akamaitechnologies.com:http (ESTABLISHED)
 
is something not suppose to be here? these are all running the ip for my apple tv.
Heres my plex log too if it will help...
20:45:27 PlexConnect: started: 20:45:27
20:45:27 PlexConnect: Version: 0.3.1+
20:45:27 PlexConnect: Python: 2.7.1 (r271:86832, Jul 31 2011, 19:30:53) 
[GCC 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2335.15.00)]
20:45:27 PlexConnect: Host OS: darwin
20:45:27 PlexConnect: IP_self: 192.168.1.14
20:45:27 DNSServer: started: 20:45:27
20:45:27 DNSServer: ***
20:45:27 DNSServer: DNSServer: Serving DNS on 192.168.1.14 port 53.
20:45:27 DNSServer: ***
20:45:27 WebServer: started: 20:45:27
20:45:27 WebServer: Failed to connect to HTTP on 192.168.1.14 port 80: [Errno 48] Address already in use
20:45:28 PlexConnect: WebServer not alive. Shutting down.
20:45:28 PlexConnect: Shutting down.
20:45:32 DNSServer: Shutting down.
20:45:32 PlexConnect: shutdown
20:45:32 PlexConnect: shutdown

 

As it says - port already in use.

You have to figure out which Application is running on that port (see WIKI). Do you have "Internet sharing" enabled?

As it says - port already in use.

You have to figure out which Application is running on that port (see WIKI). Do you have "Internet sharing" enabled?

COMMAND  PID USER   FD   TYPE             DEVICE SIZE/OFF NODE NAME

Python    1080           root    4u  IPv4 0x945a960d4f08039f      0t0    TCP amans-mbp:80 (LISTEN)

amans-mbp:PlexConnect-master amandevgun$ 

Thats all thats showing up under port 80 im sure that should be open tho being that its a python file no?

earlier i had a twitter app and drop box interfearing with port 80 i just closed them and that cleared them from the ports list but this last one is being difficult.

Reboot your machine

Reboot your machine

okay well i found out how to kill the process through activity manager and killed the python file with a 1080 port and any other program interfearing with the web server this is now my plexconnect script

12:53:48 PlexConnect: ***

12:53:48 PlexConnect: PlexConnect

12:53:48 PlexConnect: Press CTRL-C to shut down.

12:53:48 PlexConnect: ***

12:53:48 PlexConnect: started: 12:53:48

12:53:48 PlexConnect: Version: 0.3.1+

12:53:48 PlexConnect: Python: 2.7.5 (default, Aug 25 2013, 00:04:04) 

[GCC 4.2.1 Compatible Apple LLVM 5.0 (clang-500.0.68)]

12:53:48 PlexConnect: Host OS: darwin

12:53:48 PlexConnect: IP_self: 192.168.1.14

12:53:49 WebServer: started: 12:53:49

12:53:49 WebServer: ***

12:53:49 WebServer: WebServer: Serving HTTP on 192.168.1.14 port 80.

12:53:49 WebServer: ***

12:53:49 WebServer: started: 12:53:49

12:53:49 WebServer: ***

12:53:49 WebServer: WebServer: Serving HTTPS on 192.168.1.14 port 443.

12:53:49 WebServer: ***

Yet my plex from atv is saying trailers unavailble.. what now? and i did restart thanks i think thats why i had multiple python processes running which was screwing with my port 80.

wild guess here but im guessing this is a certificate issue?

Please read the “read before posting” sticky and provide all the requested information that is needed to help troubleshoot your issue any further.

Please read the "read before posting" sticky and provide all the requested information that is needed to help troubleshoot your issue any further.

i read the sticky and have no idea what your asking for.. so here.

13:25:29 PlexConnect: started: 13:25:29
13:25:29 PlexConnect: Version: 0.3.1+
13:25:29 PlexConnect: Python: 2.7.5 (default, Aug 25 2013, 00:04:04) 
[GCC 4.2.1 Compatible Apple LLVM 5.0 (clang-500.0.68)]
13:25:29 PlexConnect: Host OS: darwin
13:25:29 PlexConnect: IP_self: 192.168.1.14
13:25:29 WebServer: started: 13:25:29
13:25:29 WebServer: ***
13:25:29 WebServer: WebServer: Serving HTTP on 192.168.1.14 port 80.
13:25:29 WebServer: ***
13:25:29 WebServer: started: 13:25:29
13:25:29 WebServer: ***
13:25:29 WebServer: WebServer: Serving HTTPS on 192.168.1.14 port 443.
13:25:29 WebServer: ***
Plex Log
 
[PlexConnect]
enable_plexgdm = True
ip_pms = 192.168.178.10
port_pms = 32400
enable_dnsserver = False
port_dnsserver = 53
ip_dnsmaster = 192.168.1.14
prevent_atv_update = True
enable_plexconnect_autodetect = True
ip_plexconnect = 0.0.0.0
hosttointercept = trailers.apple.com
port_webserver = 80
enable_webserver_ssl = True
port_ssl = 443
certfile = ./assets/certificates/trailers.pem
loglevel = High
logpath = .
 Settings.Cfg
 
anything else needed? i am running an apple tv 3 if that helps. also on Mac os maveriks.

Why have you disabled the DNS server?

...because port 53 was used as well?

:-D

And even if it is just turned back to true the ip_dnsmaster is pointed to the plexconnect machine itself, so DNS will go nowhere.


Delete settings.cfg and start again.

And even if it is just turned back to true the ip_dnsmaster is pointed to the plexconnect machine itself, so DNS will go nowhere.

Delete settings.cfg and start again.

i love you.

Thanks to all 3 of you for your help it means alot. I can finally enjoy plex again!! :D

Cheers

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.