Skip to content

Instantly share code, notes, and snippets.

@phnessu4
Last active December 17, 2015 06:29
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 phnessu4/5566090 to your computer and use it in GitHub Desktop.
Save phnessu4/5566090 to your computer and use it in GitHub Desktop.
#receiver has ip
#receiver
nc sender-IP sender-port > rece.file
#sender
nc -l sender-port < send.file
#receiver doesn't have ip
#sender
nc receiver-IP receiver-port < send.file
#receiver
nc -l receiver-port > rece.file
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment