netcat client server code example Example 1: netcat server nc -l -p 1234 Example 2: netcat client nc server-ip server-port