[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to find free port



Hi Rajath N R

You can do a quick check which tcp-ports your server is listening to by
running

netstat -anp | grep LISTEN | awk '{print $4}' | sed s/".*:"//g | sort -n -u

as root. Then you just choose a port that doesnt show up.

Regards,

Kaushal

On 3/6/07, Rajath N R <rajathnr@xxxxxxxxx> wrote:
Hi all,

            How to find the available port numbers?
           i.e logic for find the  port status,whether the port number is
connected,busy or free?

 Thanks in advance.
 Rajath N R



-- To unsubscribe from this list: send an email with "unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx Please read the FAQ at http://kernelnewbies.org/FAQ