[Ilugc] Occupy a port

  • From: girishvenkatachalam@xxxxxxxxx (Girish Venkatachalam)
  • Date: Fri Aug 25 22:02:54 2006

On 8/25/06, Senthil Kumaran S <stylesen@xxxxxxxxx> wrote:

On 8/24/06, Girish Venkatachalam <girishvenkatachalam@xxxxxxxxx> wrote:
$ nc -l 3306
or
$nc -l -p 3306

Yes this solved my problem. But seeing Binand's reply am gonna try out
that, since I think nc breaks after one connection.

nc doing that is intentional, not a defect of nc.

there are plenty others that give u what u want, socat, socket(1)
and so on.

stuff like socketpipe, sockaccept ....

there are too man of them. enjoy!

i know for sure that socket(1) can solve ur problem of dying after
one connection but i expected u to find that out.

anyway enjoy!

regards,
Girish

Other related posts: