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]
Cygwin Package Information Last downloaded files to: C:\users\downl\CYGWIN Last downloaded files from: C:\users\downl\CYGWIN Package Version _update-info-dir 00167-1 ash 20020731-1 base-files 1.3-1 base-passwd 1.1-1 bash 2.05b-9 binutils 20030307-1 bzip2 1.0.2-2 cygwin 1.3.22-1 diffutils 2.8.1-1 expect 20030128-1 fileutils 4.1-1 findutils 4.1.7-4 gawk 3.1.2-2 gcc 3.2-3 gcc-mingw 20020817-5 gdbm 1.8.3-1 grep 2.5-1 groff 1.18.1-2 gzip 1.3.3-4 inetutils 1.3.2-22 less 378-1 libbz2_1 1.0.2-2 libgdbm 1.8.0-5 libgdbm-devel 1.8.3-1 libgdbm3 1.8.3-1 libiconv2 1.8-2 libintl 0.10.38-3 libintl1 0.10.40-1 libintl2 0.11.5-1 libncurses5 5.2-1 libncurses6 5.2-8 libncurses7 5.3-1 libreadline4 4.1-2 libreadline5 4.3-2 login 1.8-1 man 1.5j-2 mktemp 1.4-1 ncurses 5.3-1 netcat 1.10-1 openssh 3.6.1p1-2 openssl 0.9.7b-1 openssl096 0.9.6j-1 pcre 4.1-1 readline 4.3-2 sed 4.0.7-1 sh-utils 2.0.15-3 sharutils 4.2.1-2 tar 1.13.25-1 tcltk 20030214-1 termcap 20020930-1 terminfo 5.3-2 texinfo 4.2-4 textutils 2.0.21-1 which 1.5-1 xinetd 2.3.9-1 zlib 1.1.4-1 Cygwin Win95/NT Configuration Diagnostics Current System Time: Wed Jun 11 23:52:03 2003 Windows 98 SE Ver 4.10 Build 2222 Path: C:\prg\cygwin\usr\local\bin C:\prg\cygwin\bin C:\prg\cygwin\bin c:\WINDOWS c:\WINDOWS\COMMAND C:\prg\cygwin\bin\id.exe output (nontsec) UID: 26354(samba) GID: 544(all) 544(all) C:\prg\cygwin\bin\id.exe output (ntsec) UID: 26354(samba) GID: 544(all) 544(all) SysDir: C:\WINDOWS\SYSTEM WinDir: C:\WINDOWS HOME = `C:\prg\cygwin\home\samba' MAKE_MODE = `unix' PWD = `/home/samba' USER = `samba' BLASTER = `A220 I5 D1 T4 P330' CMDLINE = `bash --login -i' COMSPEC = `C:\WINDOWS\COMMAND.COM' CVS_RSH = `/bin/ssh' HOMEDRIVE = `C:' HOMEPATH = `\prg\cygwin\home\samba' HOSTNAME = `nemeth' MANPATH = `:/usr/ssl/man' OLDPWD = `/usr/bin' PROMPT = `$p$g' PS1 = `\[\033]0;\w\007 [EMAIL PROTECTED] \[\033[33m\w\033[0m\] $ ' SHLVL = `1' TEMP = `c:\WINDOWS\TEMP' TERM = `cygwin' TMP = `c:\WINDOWS\TEMP' WINBOOTDIR = `C:\WINDOWS' WINDIR = `C:\WINDOWS' _ = `/usr/bin/cygcheck.exe' HKEY_CURRENT_USER\Software\Cygnus Solutions HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin\mounts v2 HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin\Program Options HKEY_LOCAL_MACHINE\Software\Cygnus Solutions HKEY_LOCAL_MACHINE\Software\Cygnus Solutions\Cygwin HKEY_LOCAL_MACHINE\Software\Cygnus Solutions\Cygwin\mounts v2 (default) = `/cygdrive' cygdrive flags = 0x00000022 HKEY_LOCAL_MACHINE\Software\Cygnus Solutions\Cygwin\mounts v2\/ (default) = `C:\prg\cygwin' flags = 0x0000000a HKEY_LOCAL_MACHINE\Software\Cygnus Solutions\Cygwin\mounts v2\/usr/bin (default) = `C:\prg\cygwin/bin' flags = 0x0000000a HKEY_LOCAL_MACHINE\Software\Cygnus Solutions\Cygwin\mounts v2\/usr/lib (default) = `C:\prg\cygwin/lib' flags = 0x0000000a HKEY_LOCAL_MACHINE\Software\Cygnus Solutions\Cygwin\Program Options a: fd N/A N/A c: hd FAT32 7985Mb 58% CP UN WIN98 d: cd N/A N/A C:\prg\cygwin / system binmode C:\prg\cygwin/bin /usr/bin system binmode C:\prg\cygwin/lib /usr/lib system binmode . /cygdrive system binmode,cygdrive Found: C:\prg\cygwin\bin\awk.exe Found: C:\prg\cygwin\bin\bash.exe Found: C:\prg\cygwin\bin\cat.exe Found: C:\prg\cygwin\bin\cp.exe Found: C:\prg\cygwin\bin\cpp.exe Found: C:\prg\cygwin\bin\find.exe Found: c:\WINDOWS\COMMAND\find.exe Warning: C:\prg\cygwin\bin\find.exe hides c:\WINDOWS\COMMAND\find.exe Found: C:\prg\cygwin\bin\gcc.exe Not Found: gdb Found: C:\prg\cygwin\bin\grep.exe Found: C:\prg\cygwin\bin\ld.exe Found: C:\prg\cygwin\bin\ls.exe Found: C:\prg\cygwin\bin\make.exe Found: C:\prg\cygwin\bin\mv.exe Found: C:\prg\cygwin\bin\rm.exe Found: C:\prg\cygwin\bin\sed.exe Found: C:\prg\cygwin\bin\sh.exe Found: C:\prg\cygwin\bin\tar.exe 58k 2002/05/07 C:\prg\cygwin\bin\cygbz2-1.dll - os=4.0 img=1.0 sys=4.0 "cygbz2-1.dll" v0.0 ts=2002/5/7 8:33 19k 2003/03/22 C:\prg\cygwin\bin\cyggdbm.dll - os=4.0 img=1.0 sys=4.0 "cyggdbm.dll" v0.0 ts=2002/2/20 4:05 28k 2003/03/22 C:\prg\cygwin\bin\cyggdbm-3.dll - os=4.0 img=1.0 sys=4.0 "cyggdbm-3.dll" v0.0 ts=2003/3/22 23:19 15k 2003/03/22 C:\prg\cygwin\bin\cyggdbm_compat-3.dll - os=4.0 img=1.0 sys=4.0 "cyggdbm_compat-3.dll" v0.0 ts=2003/3/22 23:22 929k 2002/06/24 C:\prg\cygwin\bin\cygiconv-2.dll - os=4.0 img=1.0 sys=4.0 "cygiconv-2.dll" v0.0 ts=2002/6/24 20:24 21k 2001/06/20 C:\prg\cygwin\bin\cygintl.dll - os=4.0 img=1.0 sys=4.0 "cygintl.dll" v0.0 ts=2001/6/20 19:09 22k 2001/12/13 C:\prg\cygwin\bin\cygintl-1.dll - os=4.0 img=1.0 sys=4.0 "cygintl-1.dll" v0.0 ts=2001/12/13 10:28 28k 2002/09/20 C:\prg\cygwin\bin\cygintl-2.dll - os=4.0 img=1.0 sys=4.0 "cygintl-2.dll" v0.0 ts=2002/9/20 5:13 45k 2001/04/25 C:\prg\cygwin\bin\cygform5.dll - os=4.0 img=1.0 sys=4.0 "cygform5.dll" v0.0 ts=2001/4/25 7:28 26k 2001/04/25 C:\prg\cygwin\bin\cygmenu5.dll - os=4.0 img=1.0 sys=4.0 "cygmenu5.dll" v0.0 ts=2001/4/25 7:27 156k 2001/04/25 C:\prg\cygwin\bin\cygncurses++5.dll - os=4.0 img=1.0 sys=4.0 "cygncurses++5.dll" v0.0 ts=2001/4/25 7:29 226k 2001/04/25 C:\prg\cygwin\bin\cygncurses5.dll - os=4.0 img=1.0 sys=4.0 "cygncurses5.dll" v0.0 ts=2001/4/25 7:17 15k 2001/04/25 C:\prg\cygwin\bin\cygpanel5.dll - os=4.0 img=1.0 sys=4.0 "cygpanel5.dll" v0.0 ts=2001/4/25 7:27 35k 2002/01/09 C:\prg\cygwin\bin\cygform6.dll - os=4.0 img=1.0 sys=4.0 "cygform6.dll" v0.0 ts=2002/1/9 7:03 20k 2002/01/09 C:\prg\cygwin\bin\cygmenu6.dll - os=4.0 img=1.0 sys=4.0 "cygmenu6.dll" v0.0 ts=2002/1/9 7:03 175k 2002/01/09 C:\prg\cygwin\bin\cygncurses++6.dll - os=4.0 img=1.0 sys=4.0 "cygncurses++6.dll" v0.0 ts=2002/1/9 7:03 202k 2002/01/09 C:\prg\cygwin\bin\cygncurses6.dll - os=4.0 img=1.0 sys=4.0 "cygncurses6.dll" v0.0 ts=2002/1/9 7:03 12k 2002/01/09 C:\prg\cygwin\bin\cygpanel6.dll - os=4.0 img=1.0 sys=4.0 "cygpanel6.dll" v0.0 ts=2002/1/9 7:03 76k 2003/03/09 C:\prg\cygwin\bin\cygform7.dll - os=4.0 img=1.0 sys=4.0 "cygform7.dll" v0.0 ts=2003/3/9 21:51 48k 2003/03/09 C:\prg\cygwin\bin\cygmenu7.dll - os=4.0 img=1.0 sys=4.0 "cygmenu7.dll" v0.0 ts=2003/3/9 21:51 284k 2003/03/09 C:\prg\cygwin\bin\cygncurses7.dll - os=4.0 img=1.0 sys=4.0 "cygncurses7.dll" v0.0 ts=2003/3/9 21:50 31k 2003/03/09 C:\prg\cygwin\bin\cygpanel7.dll - os=4.0 img=1.0 sys=4.0 "cygpanel7.dll" v0.0 ts=2003/3/9 21:50 17k 2001/06/28 C:\prg\cygwin\bin\cyghistory4.dll - os=4.0 img=1.0 sys=4.0 "cyghistory4.dll" v0.0 ts=2001/1/7 5:34 108k 2001/06/28 C:\prg\cygwin\bin\cygreadline4.dll - os=4.0 img=1.0 sys=4.0 "cygreadline4.dll" v0.0 ts=2001/1/7 5:34 20k 2002/10/10 C:\prg\cygwin\bin\cyghistory5.dll - os=4.0 img=1.0 sys=4.0 "cyghistory5.dll" v0.0 ts=2002/10/10 19:28 127k 2002/10/10 C:\prg\cygwin\bin\cygreadline5.dll - os=4.0 img=1.0 sys=4.0 "cygreadline5.dll" v0.0 ts=2002/10/10 19:28 848k 2003/04/11 C:\prg\cygwin\bin\cygcrypto-0.9.7.dll - os=4.0 img=1.0 sys=4.0 "cygcrypto-0.9.7.dll" v0.0 ts=2003/4/11 12:33 176k 2003/04/11 C:\prg\cygwin\bin\cygssl-0.9.7.dll - os=4.0 img=1.0 sys=4.0 "cygssl-0.9.7.dll" v0.0 ts=2003/4/11 12:33 645k 2003/04/11 C:\prg\cygwin\bin\cygcrypto.dll - os=4.0 img=1.0 sys=4.0 "cygcrypto.dll" v0.0 ts=2003/4/11 12:37 165k 2003/04/11 C:\prg\cygwin\bin\cygssl.dll - os=4.0 img=1.0 sys=4.0 "cygssl.dll" v0.0 ts=2003/4/11 12:37 63k 2003/04/11 C:\prg\cygwin\bin\cygpcre.dll - os=4.0 img=1.0 sys=4.0 "cygpcre.dll" v0.0 ts=2003/4/11 10:31 61k 2003/04/11 C:\prg\cygwin\bin\cygpcreposix.dll - os=4.0 img=1.0 sys=4.0 "cygpcreposix.dll" v0.0 ts=2003/4/11 10:31 50k 2002/03/12 C:\prg\cygwin\bin\cygz.dll - os=4.0 img=1.0 sys=4.0 "cygz.dll" v0.0 ts=2002/3/12 5:38 948k 2003/03/18 C:\prg\cygwin\bin\cygwin1.dll - os=4.0 img=1.0 sys=4.0 "cygwin1.dll" v0.0 ts=2003/3/18 15:20 Cygwin DLL version info: DLL version: 1.3.22 DLL epoch: 19 DLL bad signal mask: 19005 DLL old termios: 5 DLL malloc env: 28 API major: 0 API minor: 78 Shared data: 3 DLL identifier: cygwin1 Mount registry: 2 Cygnus registry name: Cygnus Solutions Cygwin registry name: Cygwin Program options name: Program Options Cygwin mount registry name: mounts v2 Cygdrive flags: cygdrive flags Cygdrive prefix: cygdrive prefix Cygdrive default prefix: Build date: Tue Mar 18 09:20:11 EST 2003 CVS tag: dontuse-21 Shared id: cygwin1S3 Use -h to see help about each section
-- 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/