I have 2 terminals with title SERVER and CLIENT
I have setup a netcat listener on SERVER with below command
nc -lvp 12345
and from CLIENT i connect to it using
nc 127.0.0.1 12345
When ever a client connects to the server, i just want to be informed on server that a client has connected.
nc -lvp 12345generates an error on my system (both Linux and FreeBSD). What netcat are you running?-pis used only to identify the source port for an outgoing connection. According to the man page, "It is an error to use this option in conjunction with the -l option."