1753844 Members
7269 Online
108806 Solutions
New Discussion юеВ

Re: lsof

 
SOLVED
Go to solution
pgorn
Frequent Advisor

lsof

How can you tell what ports are available to use. does it say LISTEN or what?
Please help fist time using lsof
thanks
4 REPLIES 4
A. Clay Stephenson
Acclaimed Contributor
Solution

Re: lsof

Essentially, whatever ports lsof, netstat, et al do not list are available --- at that moment.

If this is a serious application then the developer should request a port registration from IANA.

Here is a reference to port assignments so typically the idea is to choose an unused port number -- and then make sure using netstat and lsof that the port is indeed unused on your system.

http://www.iana.org/assignments/port-numbers
If it ain't broke, I can fix that.
Ivan Ferreira
Honored Contributor

Re: lsof

The ports in LISTEN state are currently in use, you can check with:

netstat -an |grep LISTEN

You can check /etc/services for a list or good known ports that are "reserved" for services. You should use a different port.
Por que hacerlo dificil si es posible hacerlo facil? - Why do it the hard way, when you can do it the easy way?
pgorn
Frequent Advisor

Re: lsof

Thanks for your response. The app is Tuxedo and I got it fixed
pgorn
Frequent Advisor

Re: lsof

The problem is fixed
Thank you