Error 48 - Port 80

I run apache on the same machine as plexconnect and my solution was to change the apache port to 8080 and use my router to forward traffic from public 80 to private 8080.

Best of both worlds in my opinion. Outside world still sees my site and local network sees plexconnect.

Ah, dumb moment on my part. I'll disable the web server and put it on another port :)

To accomplish running PC on port 90, and keep my webserver on 80, I changed the port in PC, and added a VirtualHost on trailers.apple.com in apache with a transparent proxy passing it to the other port...

The only issue I see with that is that it isn’t just the trailers.apple.com calls that need to be redirected. It’s all the traffic from the AppleTV even the stuff from Netflix, Hulu, etc.

FYI I fixed mine, which also had port 80 running, by doing the following from the terminal:

cd /etc/apache2 
sudo vi httpd.conf
find the line that has port 80 in it by typing /80 and hitting return

change this line to something like 8080 (HIT R to overwrite)

save the file (escape Z Z)

then 
sudo apachectl restart

Good luck and msg me if you get stuck with these instructions.


Didn't help, the article is about turning Web Sharing on, not off. Or do i misunderstand? Either way it didn't work

Try to look for the windows activation services from services and stop them if you are using the windows pc

I am having the same issue on Mac OS X 10.8.3 with PMS 0.9.7.22.511

Initially PlexConnect could not even see PMS (on same box). In 'setting.py' I had to change the ip_pms to the ip that my PMS was running on. I also had to delete the auto generated settings.cfg and then re-run the sudo ./PlexConnect.cy command.

I now get the following:

Password:
PlexConnect : ***
PlexConnect : PlexConnect
PlexConnect : Press ENTER to shut down.
PlexConnect : ***
PlexConnect : IP_self: 192.168.1.102
PlexGDM : ***
PlexGDM : looking up Plex Media Server
PlexGDM : ***
PlexGDM : servers discovered: 1
PlexConnect : PMS: 192.168.1.102:32400
DNSServer : ***
DNSServer : Starting up.
DNSServer : intercept trailers.apple.com: 192.168.1.102
DNSServer : forward other to higher level DNS: 8.8.8.8
DNSServer : ***
WebServer : Failed to connect to port 80 (http): [Errno 48] Address already in use
PlexConnect : WebServer not alive. Shutting down.
DNSServer : Shutting down.

I see that port 80 is in use, but cannot seem to identify what is using it? I am not knowingly running a web server. I have also disabled little snitch and even closed down dropbox on the off chance that was causing issues.

I have run sudo lsof -i :80 and nothing is showing up there.

I have run sudo launchctl unload -w /System/Library/LaunchDaemons/org.apache.httpd.plist however it appears as though apache is not running on my system.
 

Not trying to hijack the post but just trying to add information.

Thanks everyone for their input/assistance.

EDIT: Perhaps there is a webserver running. When I enter 127.0.0.1:80 into my browser, it shows a page that says It Works! Hopefully that will help out a bit

I am having the same issue on Mac OS X 10.8.3 with PMS 0.9.7.22.511

Initially PlexConnect could not even see PMS (on same box). In 'setting.py' I had to change the ip_pms to the ip that my PMS was running on. I also had to delete the auto generated settings.cfg and then re-run the sudo ./PlexConnect.cy command.

I now get the following:

Password:
PlexConnect : ***
PlexConnect : PlexConnect
PlexConnect : Press ENTER to shut down.
PlexConnect : ***
PlexConnect : IP_self: 192.168.1.102
PlexGDM : ***
PlexGDM : looking up Plex Media Server
PlexGDM : ***
PlexGDM : servers discovered: 1
PlexConnect : PMS: 192.168.1.102:32400
DNSServer : ***
DNSServer : Starting up.
DNSServer : intercept trailers.apple.com: 192.168.1.102
DNSServer : forward other to higher level DNS: 8.8.8.8
DNSServer : ***
WebServer : Failed to connect to port 80 (http): [Errno 48] Address already in use
PlexConnect : WebServer not alive. Shutting down.
DNSServer : Shutting down.

I see that port 80 is in use, but cannot seem to identify what is using it? I am not knowingly running a web server. I have also disabled little snitch and even closed down dropbox on the off chance that was causing issues.

I have run sudo lsof -i :80 and nothing is showing up there.

I have run sudo launchctl unload -w /System/Library/LaunchDaemons/org.apache.httpd.plist however it appears as though apache is not running on my system.
 

Not trying to hijack the post but just trying to add information.

Thanks everyone for their input/assistance.

EDIT: Perhaps there is a webserver running. When I enter 127.0.0.1:80 into my browser, it shows a page that says It Works! Hopefully that will help out a bit

That sounds like the built in osx web sharing feature.  Do you have osx server app installed on this box?

That sounds like the built in osx web sharing feature.  Do you have osx server app installed on this box?

No I don't have any OS X server features installed.

In my case it turned out to be a web server from the 'Rumpas' package (http://www.maxum.com/Rumpus/).

I'm not sure where it came from but I reinstalled the trial from their site and there was an option to 'turn off' the included web server.

After doing that, PlexConnect fired up with no worries.

Thanks everyone for their help and I hope this helps someone else out.

Btw make configuration changes to settings.cfg, you should no longer be making changes to settings.py.

I will be updating the wiki to reflect this.

Same problem here. PlexConnect worked for 2 days without issue until this afternoon. I thought I'd start from scratch again and then I got the following: 

Password:
19:17:04 PlexConnect: started: 19:17:04
19:17:04 PlexConnect: ***
19:17:04 PlexConnect: PlexConnect
19:17:04 PlexConnect: Press CTRL-C to shut down.
19:17:04 PlexConnect: ***
19:17:04 PlexConnect: IP_self: 10.0.1.5
19:17:04 PlexConnect: started: 19:17:04
19:17:04 DNSServer: started: 19:17:04
19:17:04 DNSServer: ***
19:17:04 DNSServer: Starting up.
19:17:04 DNSServer: intercept trailers.apple.com: 10.0.1.5
19:17:04 DNSServer: forward other to higher level DNS: 8.8.8.8
19:17:04 DNSServer: ***
19:17:04 WebServer: started: 19:17:04
19:17:04 WebServer: Failed to connect to HTTP on 0.0.0.0 port 80: [Errno 48] Address already in use
19:17:04 PlexConnect: WebServer not alive. Shutting down.
19:17:09 DNSServer: Shutting down.

thinking of downgrading and going back to the old plex  :mellow: This is getting on my nerves!

Same problem here. PlexConnect worked for 2 days without issue until this afternoon. I thought I'd start from scratch again and then I got the following:



Password:
19:17:04 PlexConnect: started: 19:17:04
19:17:04 PlexConnect: ***
19:17:04 PlexConnect: PlexConnect
19:17:04 PlexConnect: Press CTRL-C to shut down.
19:17:04 PlexConnect: ***
19:17:04 PlexConnect: IP_self: 10.0.1.5
19:17:04 PlexConnect: started: 19:17:04
19:17:04 DNSServer: started: 19:17:04
19:17:04 DNSServer: ***
19:17:04 DNSServer: Starting up.
19:17:04 DNSServer: intercept trailers.apple.com: 10.0.1.5
19:17:04 DNSServer: forward other to higher level DNS: 8.8.8.8
19:17:04 DNSServer: ***
19:17:04 WebServer: started: 19:17:04
19:17:04 WebServer: Failed to connect to HTTP on 0.0.0.0 port 80: [Errno 48] Address already in use
19:17:04 PlexConnect: WebServer not alive. Shutting down.
19:17:09 DNSServer: Shutting down.


thinking of downgrading and going back to the old plex :mellow: This is getting on my nerves!


Or you could read the wiki on common errors messages and find out what is already hogging port 80 on your system and fix the root cause:

https://github.com/iBaa/PlexConnect/wiki/Troubleshooting

;)

I did read it - went through everything and can't find the solution - which is why I posted. 

If you are on OSX try restarting the computer or go into activity monitor and kill all python processes and then restart Plexconnect.

Also you need to give the info requested in ‘how to report an issue’, without this it is usually really difficult to help you.

At the moment we don’t even know what OS you are running so cannot help you find what is hogging port 80.

I know -I couldn't provide all the info because I've been traveling and have hardly been at the computer plex runs on of late

I have to say though - as an ex-technical writer, the quality of the info in the wiki, and the official install instructions/info have gone downhill compared to when I first started using plex a few years ago. If that information was more accessible, and also easier to understand for those not that technically inclined, most people wouldn't need to post in the first place.  :rolleyes:

I know -I couldn't provide all the info because I've been traveling and have hardly been at the computer plex runs on of late

I have to say though - as an ex-technical writer, the quality of the info in the wiki, and the official install instructions/info have gone downhill compared to when I first started using plex a few years ago. If that information was more accessible, and also easier to understand for those not that technically inclined, most people wouldn't need to post in the first place.  :rolleyes:

Fair enough that you do not have access to it but then expecting others to be able to understand what the problem is and help you without really necessary information is a little silly.

If you are talking about the PlexConnect instructions i am amazed how you have found it has gone downhill from a few years ago as it did not even exist until a few months ago (PlexConnect is created by a third party team and not Plex Inc.).

Also bear in mind it is a alpha/beta at the moment so there is a reason why the instructions do not contain e.g. screencasts; these will come once the code stabilises and it becomes more accessible e.g. removal of the need for the terminal.

If you want to be an early adopter then you can either understand you are an early adopter, but feel free to use your skills to message me rewrites of things that do not meet your standards and i will look to see whether they should be used instead ;)

It is a core team of three people, with some other making contributions and we have a lot on as well e.g. within 4 months i have been married, found and bought a house, moved in and have a child on the way.

Contributions of help are always welcome to help us with our busy schedules :)

that agony has been solved for me, i found out that what was taking over port 80 is http api service, i wrote in cmd


net stop http


asked me the following services will be stopped, do you want to continue? pressed y


it stopped a number of services actually…


then wrote localhost and wallah, apache is up and running on port 80… hope this helps

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