# 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.mydomain                     Host name only.
          myhost.mydomain:23                  Host name with a port number.
          foohost.foodomain /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).
Telnet
  Enables the telnet protocol. Usually, you should select this option.
TCP port#
  Normally, you should use the TCP port number 23 for the telnet protocol.

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.