telnet: open
適用於:Windows Server 2022、Windows Server 2019、Windows Server 2016、Windows Server 2012 R2、Windows Server 2012
連接到 telnet 伺服器。
語法
o[pen] <hostname> [<port>]
參數
參數 | 描述 |
---|---|
<hostname> |
指定電腦名稱或 IP 位址。 |
[<port>] |
指定 telnet 伺服器正在接聽的 TCP 連接埠。 預設為 TCP 通訊埠 23。 |
範例
若要連線到位於 telnet.microsoft.com 的 telnet 伺服器,請輸入:
o telnet.microsoft.com