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

Re: How to find free port



You wrote to <kernelnewbies@xxxxxxxxxxxx> on Tue, 6 Mar 2007 12:50:45 +0530:

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

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

KS> as root. Then you just choose a port that doesnt show up.
I would also consult with RFC1700 to make sure the port one's going to pick is available.


--
Roman Mashak




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