1753877 Members
7613 Online
108809 Solutions
New Discussion юеВ

Re: release tcp port

 
SOLVED
Go to solution
dongming
Frequent Advisor

release tcp port

Hello
i find a tcp port was occupied , how can find the process who listen this port, and kill the process, how to release the port .

tcp 0 0 localhost.8005 *.* LISTEN

thanks
5 REPLIES 5
Prashant Zanwar_4
Respected Contributor
Solution

Re: release tcp port

lsof -i:8005 , this should tell what processes are occupying this port..
try finding entry in /etc/services file..

Thanks and regards
Prashant
"Intellect distinguishes between the possible and the impossible; reason distinguishes between the sensible and the senseless. Even the possible can be senseless."
dongming
Frequent Advisor

Re: release tcp port

thanks.
lsof is not default command in hpux, where can i get this command.

and do you know how to release the port by ndd directly.
Torsten.
Acclaimed Contributor

Re: release tcp port

lsof:

http://hpux.connect.org.uk/hppd/cgi-bin/search?package=on&description=on&term=lsof

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
Prashant Zanwar_4
Respected Contributor

Re: release tcp port

http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=1018339

this is parallel thread at the time you are putting your query.. has help of lsof..

I am of opening lsof is a must tool in HP and helps a lot..

I am not sure if ndd works for such thing..

Thanks and regards
Prashant
"Intellect distinguishes between the possible and the impossible; reason distinguishes between the sensible and the senseless. Even the possible can be senseless."
dongming
Frequent Advisor

Re: release tcp port

thanks , i find the process.