1825705 Members
3266 Online
109686 Solutions
New Discussion

Who's using port 80 ?

 
SOLVED
Go to solution
Preet Dhillon
Advisor

Who's using port 80 ?

Dear Colleagues,

I'd like to know which processes (if any) are using port 80 on my HP-UX 11.00 server. I'm trying to start an Oracle service on this port and it's failing so I'd like to know if something else is already using port 80. Is there a way of telling ?

Many thanks and regards,
Preet
Nothing succeeds like excess
11 REPLIES 11
Robert Gamble
Respected Contributor

Re: Who's using port 80 ?

port 80 is the default port for web servers.
see /etc/services for variations.

More than likely someone is running a webserver on this server.
Domenico_5
Respected Contributor

Re: Who's using port 80 ?

hi


use:

grep 80 /etc/services

it's http server
melvyn burnard
Honored Contributor

Re: Who's using port 80 ?

standard port for http
check /etc/services
My house is the bank's, my money the wife's, But my opinions belong to me, not HP!
Steven Gillard_2
Honored Contributor
Solution

Re: Who's using port 80 ?

You can use the 'lsof' utility to find out the actual process thats using a port. Get it from:

http://hpux.connect.org.uk/hppd/hpux/Sysadmin/lsof-4.61/

Regards,
Steve
Preet Dhillon
Advisor

Re: Who's using port 80 ?

Hi Steven ,

Many thanks for the link to lsof which I've downloaded and installed. The install of lsof includes a file called /otp/lsof/man/man8/lsof.8. Can you advise how to read this as a man page ?

Many thanks and regards,
Preet
Nothing succeeds like excess
Steven Gillard_2
Honored Contributor

Re: Who's using port 80 ?

Just add it to your MANPATH:

# export MANPATH=$MANPATH:/opt/lsof/man
# man lsof

You should be able to get the information you want by running the following lsof command:

# lsof -i -n | grep 80 | grep LISTEN

Regards,
Steve
MANOJ SRIVASTAVA
Honored Contributor

Re: Who's using port 80 ?

Hi Preet

You can mv the man file under /usr/share/man/man.8/lsof.8 and the do a man lsof as this directory is the default man path. or you can do a man lsof under the sam directory to read it .


And for port 80 do a lsof | grep 80 to know who is using it.


Manoj Srivastava
harry d brown jr
Honored Contributor

Re: Who's using port 80 ?

export MANPATH=$MANPATH:/opt/lsof/man

man lsof


You probably want to add it to your profile.


live free or die
harry
Live Free or Die
pap
Respected Contributor

Re: Who's using port 80 ?

Hi,
Port 80 is by deault to be used by web services.

thanks,
-pap
"Winners don't do different things , they do things differently"
John Bolene
Honored Contributor

Re: Who's using port 80 ?

Back on the path to man pages.

Make that page permanent for all users by adding the path to /etc/MANPATH

Another aside... If your ISP provider has banned use of a webserver on port 80 and blocked those packets, just switch it to another port such as 81. You will have to provide your users with the port number, since 80 is the assumed default.
It is always a good day when you are launching rockets! http://tripolioklahoma.org, Mostly Missiles http://mostlymissiles.com
hpuxrox
Respected Contributor

Re: Who's using port 80 ?

Been here before my friend, The best way to find out it to install lsof. If your companys policy doesnt alow you. You can try netstat -a and grep for port 80 to give you a clue.