# New connection ([File] menu)

Connects to a new host or a serial port or a named pipe. Also, Replays a log file. If the connection is already open, opens a new Tera Term window.

## "New connection" dialog box

### TCP/IP

Host
  Enter the host name or IP address(IPv4 and IPv6) or named pipe, or select one from the host list. To edit the host list, use the [Setup] TCP/IP command.
  The IPv6 address is surround with the bracket. (Refer to RFC3986 / RFC5952)
  You can enter not only the host name or address, but also the command line parameters like the following:

          myhost.example.com                  Host name only.
          myhost.example.com:23               Host name with a port number.
          foohost.example.org /F=FOOHOST.INI  Host name & setup file name.
          /C=1                                Specifies the serial port connection.
          /R=LOG.DAT                          Replays the log file.
          [2001:db8:1:2:8401:2ff:fe03:405]    IPv6 address
          [fe80::8401:2ff:fe03:405%3]:8022    IPv6 address and Port number
          user@myhost.example.com:10022 /ssh  SSH connection to a port number other than 22
          ssh://user@myhost.example.com       SSH connection to the SSH protocol(ssh://)
          \\.\pipe\vmware-serial-port         Named pipe connection

  This edit control can support the Ctrl+a(Home key), Ctrl+e(End key), Ctrl+b(left-arrow), Ctrl+f(right-arrow), Ctrl+n(down-arrow), Ctrl+p(up-arrow), Ctrl+d(delete the character at point), Ctrl+k(kill the text from point to the end of the line) and Ctrl+u(kill backward from point to the beginning of the line).
History
  Displayed when TTSSH is enabled.
  This option is select, the entered hostname will be added to the top of the host list when connecting to the input host. This checkbox uses function of History in the [Setup] menu.
Telnet
  Enables the telnet protocol.
SSH
  Default selected option. Displayed when TTSSH is enabled.
  Enables the SSH protocol.
Other
  Displayed when TTSSH is enabled.
  Enables other protocol from except telnet and SSH.
TCP port#
  Specify the port number according to the selected service.
  The default is as follows.

  Service | TCP port# | etc.
  --- | --- | ---
  Telnet | 23 | well-known ports
  SSH | 22 | well-known ports Displayed when TTSSH is enabled.
  Other | (Optional) | Displayed when TTSSH is enabled.

SSH version
  Displayed when TTSSH is enabled.
  Uses for connection by selected from version ssh1 or ssh2.
IP version
  Selects as an IP version from AUTO or IPv6 or IPv4.
  The AUTO try to connect to the IP address associated with the hostname.
  Either IPv6 or IPv4 using depends on the OS setting(priority of IP version).

Note:
Only if <telnet flag> is on and <TCP port#> is 23, Tera Term starts spontaneously sending telnet commands to the host for the option negotiation when the TCP/IP connection is established. In any cases, Tera Term can respond to telnet commands sent by the host.

See also:
Telnet port number / Terminal setup for non-telnet connection

### Serial

Port
  Select a port from the list. By default, maximum serial port number in the list is 256. Also, the serial port does not show when there is no available port. It is configurable in MaxComPort setting.