1 |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" |
2 |
"http://www.w3.org/TR/html4/strict.dtd"> |
3 |
<HTML> |
4 |
<HEAD> |
5 |
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> |
6 |
<TITLE>Tips on TCP/IP connection with a port other than 23</TITLE> |
7 |
<META http-equiv="Content-Style-Type" content="text/css"> |
8 |
<link rel="stylesheet" href="../../style.css" type="text/css"> |
9 |
</HEAD> |
10 |
<BODY> |
11 |
|
12 |
<h1>Telnet port number</h1> |
13 |
|
14 |
<p> |
15 |
On the <A HREF="../../commandline/teraterm.html">command line</A>, or on the <A HREF="../../menu/file.html">[File] New connection</A> dialog box, you can specify the TCP port number (<TCP port#>) and telnet flag (<telnet flag>) for a TCP/IP connection. If these parameters are omitted in the command line, the default values are taken from the Tera Term setup file. |
16 |
</p> |
17 |
|
18 |
<p> |
19 |
Only if <telnet flag> is 1 (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. |
20 |
</p> |
21 |
|
22 |
<p> |
23 |
This particular port number for telnet, 23, can be changed by editing the TelPort line in the [Tera Term] section of setup file like the following: |
24 |
</p> |
25 |
|
26 |
<pre> |
27 |
TelPort=<telnet port#> |
28 |
|
29 |
Default: |
30 |
TelPort=23 |
31 |
</pre> |
32 |
|
33 |
<p> |
34 |
Whatever <TCP port#> is and whatever <telnet flag> is, Tera Term can respond to telnet commands sent by the host. |
35 |
</p> |
36 |
|
37 |
<h1>Terminal setup for non-telnet TCP/IP connection</h1> |
38 |
|
39 |
<p> |
40 |
For a non-telnet TCP/IP connection (usually with a port other than 23), you may need to set the "local echo" option on, and the "new-line (transmit)" option to CR+LF. If you edit the TCPLocalEcho and TCPCRSend lines in the [Tera Term] section of the setup file like the following: |
41 |
</p> |
42 |
|
43 |
<pre> |
44 |
TCPLocalEcho=on |
45 |
TCPCRSend=CRLF (CR is also acceptable) |
46 |
</pre> |
47 |
|
48 |
<p> |
49 |
the "local echo" option is turned on and the "new-line (transmit)" option is set to CRLF automatically when the connection is establised on condition that <telnet flag> is 0 (off), or <TCP port#> is not equal to <telnet port#>. Otherwise, setup values specified by [Setup] Terminal are used. By using these options, one setup file can support both the telnet connection and non-telnet connection. |
50 |
</p> |
51 |
|
52 |
<pre> |
53 |
Default: |
54 |
TCPLocalEcho=off (This option is disabled and the "local echo" option in the [Setup] Terminal dialog box is always used.) |
55 |
|
56 |
TCPCRSend= (This option is disabled and the "new-line (transmit)" option in the [Setup] Terminal dialog box is always used.) |
57 |
</pre> |
58 |
|
59 |
</BODY> |
60 |
</HTML> |