I tried to make server client model as below
on one shell
nc -l -p 8080 this works as a server
and on another
nc 127.0.0.1 8080 and this works as a client
all of this is fine ... the problem that if I closed the client the server closes also .. how can I keep server working after terminating client ??