### telnet

Use the telnet command to establish a telnet session with a remote system.

Anyone can execute the telnet command.

#### Command Syntax

Enter the telnet command as shown below.

> `telnet {hostname|host_ip_addr} [tcp_port]`

#### Command Fields

Command Field | Description
hostname | Specifies the name of the host to which you want a telnet session. DNS must be configured on the PortServer to use this option.
host_ip_addr | Specifies the IP address of the host to which you want a telnet session.
tcp_port | Specifies the TCP port assigned the telnet application on the remote system. The default is 23, the port typically used for telnet.

#### Command Examples

##### Opening a Telnet Session Using a Host Name

In this example, the telnet command establishes a telnet session using a host name. The default TCP port (23) is used.

> `telnet host1`

##### Opening a Telnet Session Using an IP Address

In this example, the telnet command establishes a telnet session using an IP address. The default TCP port (23) is used.

> `telnet 192.192.150.28`

##### Opening a Telnet Session to a PortServer Port from the LAN

In this example, a user on the LAN initiates a `telnet` connection to port 4 on a PortServer named host1.

> `telnet host-1 2004`