cancel
Showing results for 
Search instead for 
Did you mean: 

lsof

 
SOLVED
Go to solution
Highlighted
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
Highlighted
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.
Highlighted
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?
Highlighted
Frequent Advisor

Re: lsof

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

Re: lsof

The problem is fixed
Thank you