Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Mac OS X > How do I find out what is using port 80 and disable it?

How do I find out what is using port 80 and disable it?
Thread Tools
Mac Enthusiast
Join Date: Dec 2001
Location: UK
Status: Offline
Reply With Quote
Nov 12, 2002, 02:49 AM
 
Hi folks,

I've been trying to set up Quicktime Streaming Server but I get an error in the log saying that another application is already using port 80.

I have turned off Personal Web sharing (which is Apache right?) but it still says the port is in use. I have no Idea what it could be so I was wondering if anyone had any idea how I can check?

Thanks
If it rained soup I'd have a fork in my hand!
     
Grizzled Veteran
Join Date: May 2002
Location: UK
Status: Offline
Reply With Quote
Nov 12, 2002, 03:47 AM
 
erm isn't that just regular web browsing using that?
     
Professional Poster
Join Date: Mar 2000
Location: New York, NY, USA
Status: Offline
Reply With Quote
Nov 12, 2002, 03:47 AM
 
Anything that uses HTTP.

So, a lot of things.
     
Mac Elite
Join Date: May 2001
Status: Offline
Reply With Quote
Nov 12, 2002, 04:16 AM
 
Code:
sudo lsof -i | grep :80
in the terminal might give you a hint what's using port 80.

-
     
Mac Elite
Join Date: May 2002
Status: Offline
Reply With Quote
Nov 12, 2002, 08:48 AM
 
Well, posting to this message board uses it, for one. 80 is the HTTP port.
[vash:~] banana% killall killall
Terminated
     
Mac Elite
Join Date: Nov 2001
Location: Trafalmadore
Status: Offline
Reply With Quote
Nov 12, 2002, 08:56 AM
 
Try netstat in terminal
     
Clinically Insane
Join Date: Nov 1999
Status: Offline
Reply With Quote
Nov 12, 2002, 09:05 AM
 
Originally posted by Gul Banana:
Well, posting to this message board uses it, for one. 80 is the HTTP port.
That's only for incoming connections. An HTTP server listens on that port. However, your machine might be connecting to it through any port.

Well, not any port, per se; only root can open connections on port numbers less than 1024. But when you connect to a Web server, it might be that you're on Port 38924 (for example), connected to the server's Port 80.

Personal Web Sharing does use Port 80, yes. You said you turned it off. It's possible, though, that a few strays may still be running. Try this in your Terminal: sudo killall httpd (enter your password when asked) and then try running the server again. It may work.

Have you rebooted since turning off Web Sharing? That would also clear out any stray Apache processes.
You are in Soviet Russia. It is dark. Grue is likely to be eaten by YOU!
     
   
Thread Tools
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 01:25 PM.
All contents of these forums © 1995-2013 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2013, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2