0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

TNCコマンドに関して

Posted at

背景

今回、Azure上に仮想の制御サーバを立てて、プリンタと仮想サーバの通信を行おうとしていました。
ただ、プリンタで制御サーバの設定をしようとしてもうまく設定できなかったため、ポートの穴あけを行い、その際の疎通確認をするためにTNCコマンドを初めて使用しました。どのポートが開いているのかを確認するのにとても便利です!

TNCコマンドとは

TNCコマンドは、Test-NetConnectionコマンドのことで、PowerShellを使用してポートの疎通確認を行います。
コマンドの表記は以下のようになります。
** Test-NetConnection <接続先の端末> -Port <ポート番号> **

例えば、Googleの443のポートが開いているかを確認したいときは以下のようにします
image.png
上記の画像の最後の行である「TcpTestSucceeded」がTrueとなっている場合は疎通が出来ていることになります。

みなさんもぜひ使ってみてください!!

0
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
0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?