7
3

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

TCPの疎通をnetcatで簡単に確認する方法

Posted at

ncコマンドに-v-zを付ける。
-vは詳細、-zはデータを対象ポートに送信しない。というオプション。

nc -vz Address Port

nc -vz 127.0.0.1 80

正常に接続ができたときの出力

Connection to 127.0.0.1 80 port [tcp/*] succeeded!

接続に失敗したときの出力

nc: connect to 127.0.0.1 port 80 (tcp) failed: Connection timed out
7
3
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
7
3

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?