Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Release a "listen" port

Status
Not open for further replies.

new2unix

Programmer
Feb 5, 2001
143
US
Hi,

My communication program on an AIX box could not bind to a socket because the address was already in use. netstat showed the socket to have a LISTEN status. How do I release this socket? It looks like another process is using the port but it shouldn't.

tcp4 0 0 *.7800 *.* LISTEN

Thanks

Mike
 
Mike,

Sorry to sound stupid but -- what does your line

tcp4 0 0 *.7800 *.* LISTEN

refer to?

----------------------------------------------------------------------- Mike
michael.j.lacey@ntlworld.com
Email welcome if you're in a hurry or something -- but post in tek-tips as well please, and I will post my reply here as well.
 
If you have lsof installed,
lsof -n |grep LIST should show which program has that port. Tony ... aka chgwhat
tony_b@technologist.com

When in doubt,,, Power out...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top