LoginSignup
2
1

More than 5 years have passed since last update.

UDP, TCP通信をコマンドで実行する

Posted at

サーバー側

  • UDPでListenする
nc -l -u -p [ポート番号]
  • TCPでListenする
nc -l -p [ポート番号]

クライアント側

  • UDPで送信する
nc -u [ホスト名/IP] [ポート番号]
  • TCPで送信する
nc [ホスト名/IP] [ポート番号]
2
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
1