To run netcat
in the listening mode and automatically send a message once client has connected
# GNU version of netcat
echo "Welcome to Ihar's Server" | nc -l <PORT>
# or
echo "Welcome to Ihar's Server" | nc -l -p <PORT>
To run netcat
in the listening mode and automatically send a message once client has connected
# GNU version of netcat
echo "Welcome to Ihar's Server" | nc -l <PORT>
# or
echo "Welcome to Ihar's Server" | nc -l -p <PORT>