This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

telnet connect bug


Hi!

Here is a telnet test using NetCat as server and telnet connecting to
localhost. When the telnet uses the default telnet(23) port then as telnet
connects some rubbish is sent to the server (case 1). When specifing
explicitly for telnet to connect to port 23, then telnet works fine
(case 2). When using MS telnet, that works fine too (case 3, 4).

See attachment for my system details.

Is this a win98SE specific bug, or a telnet bug?

Thanks,

	NMarci

=========== case 1 ===========
Case 1
1. start "nc -l -p 23 -v -v" in a bash window (window #1)
2. start "telnet localhost" in an other bash window (window #2)
result: in the window #1 something appears seems to sent by telnet.
expected result: only the "connected to [127.0.0.1]" message should appear
3. press Ctrl+C in wondow #1

----------- window #1 --------
$ nc -l -p 23 -v -v
listening on [any] 23 ...
connect to [127.0.0.1] from localost [127.0.0.1] 1025
ˇýˇűˇűˇű ˇű!ˇű"ˇű'ˇý sent 0, rcvd 24

----------- window #2 --------
$ telnet localhost
Trying 127.0.0.1...
Connected to nemeth.
Escape character is '^]'.
Connection closed by foreign host.


=========== case 2 ===========
Case 2
1. start "nc -l -p 23 -v -v" in a bash window (window #1)
2. start "telnet localhost 23" in an other bash window (window #2)
3. press Ctrl+C in wondow #1

result: telnet seems to work good.


----------- window #1 --------
$ nc -l -p 23 -v -v
listening on [any] 23 ...
connect to [127.0.0.1] from localost [127.0.0.1] 1032
 sent 0, rcvd 0

----------- window #2 --------
$ telnet localhost 23
Trying 127.0.0.1...
Connected to nemeth.
Escape character is '^]'.
Connection closed by foreign host.


=========== case 3 ===========
Case 3
1. start "nc -l -p 23 -v -v" in a bash window (window #1)
2. start MS telnet for Windows 98 version 1.0
3. Connect/Remote system
   Called computer: 127.0.0.1
   Port: telnet
   Terminal type: vt100
   -> push connect
4. press Ctrl+C in wondow #1

result: MS telnet seems to work good.

=========== case 4 ===========
Case 4
1. start "nc -l -p 23 -v -v" in a bash window (window #1)
2. start MS telnet for Windows 98 version 1.0
3. Connect/Remote system
   Called computer: 127.0.0.1
   Port: telnet
   Terminal type: vt100
   -> push connect
4. press Ctrl+C in wondow #1

result: MS telnet seems to work good.


I'm using program versions

$ telnet --version
telnet (GNU inetutils) 1.3.2

$ nc -h
[v1.10]

Attachment: cygcheck-c-s-r-v.txt
Description: Text document

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]