Skip to content

Instantly share code, notes, and snippets.

@AysadKozanoglu
Created November 27, 2018 01:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save AysadKozanoglu/a5b92861252d39d26bb0799b2e333ccd to your computer and use it in GitHub Desktop.
Save AysadKozanoglu/a5b92861252d39d26bb0799b2e333ccd to your computer and use it in GitHub Desktop.
simple chat on network (do not use it on public net )
# replace 192.168.x.x with your ip
# apt install mawk
# the server
mawk -W interactive '$0="Aysad: "$0' | nc -l -p 9000 192.168.x.x
# the clients
mawk -W interactive '$0="clientUser1: "$0' | nc 192.168.x.x 9000
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment