Skip to content

Latest commit

 

History

History
15 lines (14 loc) · 340 Bytes

File metadata and controls

15 lines (14 loc) · 340 Bytes

Send the file over to computers

nc -l 1234 > filename
nc remote 1234 < filename

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>