1829954 Members
2229 Online
109998 Solutions
New Discussion

port already used

 
sameer_4
Advisor

port already used

Hi,
i am installing one appplication which requires a particular port to be installed on but it says port is already occupied..but i dont see that port occupied in netstat -an or lsof o/p.Any ideas how can i find out why this is happening.


thnks
9 REPLIES 9
Tom Geudens
Honored Contributor

Re: port already used

Hi,
Check /etc/services to see if the port is already in use. Most application-installs just add lines in there.

If your application checked this ... it is a very nice application indeed :-)

Hope this helps,
Tom
A life ? Cool ! Where can I download one of those from ?
Steven Sim Kok Leong
Honored Contributor

Re: port already used

Hi,

You should be able to see the port used in your lsof output.

# lsof -i

Hope this helps. Regards.

Steven Sim Kok Leong
Alex Glennie
Honored Contributor

Re: port already used

also make sure you run lsof -i : as the root user
sameer_4
Advisor

Re: port already used

I checked the same it is not available in /etc/services.
T G Manikandan
Honored Contributor

Re: port already used

There are startup scripts on the server which startup various services and reserve them to use a port.
So when your application is trying to configure that port
"port already in use"

You can supress and make use the port for your application by making an entry in the /etc/services file,but it is quite neccessary to find the application that is currently using that port.

What is the port number that the application is trying to use.

Thanks
sven verhaegen
Respected Contributor

Re: port already used

unfortunately to say that the /etc/services file is but a 'doc' type of file , it holds a descriptor for the well known ports and some others but the system isn't going to reserve the port because you put it in there , it just doesn't work like that , if lsof doesn't see the socket that is strange i do agree that lsof -i should show it at least
...knowing one ignores a greath many things is the first step to wisdom...
V. V. Ravi Kumar_1
Respected Contributor

Re: port already used

hi,

use lsof -i:
if doesn't give any output, then check that port is listed in /etc/services, it not, try adding that in /etc/services.

regds
Never Say No
sameer_4
Advisor

Re: port already used

the port nos. are 6848,6849
U.SivaKumar_2
Honored Contributor

Re: port already used

Hi,
Those ports mentioned are used by ADP payroll
application , do you use that ?.
IF not please tell us about the applications you are running in the server ?. Also Is this
server a DNS client ?.

regards,
U.SivaKumar
Innovations are made when conventions are broken