Re: How to find free port

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

 



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


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux