Mail Archives: cygwin/2002/06/27/01:29:28
On Wed, Jun 26, 2002 at 10:06:48AM +0200, Corinna Vinschen wrote:
> On Tue, Jun 25, 2002 at 09:29:42PM -0700, Brendan Conoboy wrote:
> > On Tue, Jun 25, 2002 at 11:32:29PM -0400, Jon LaBadie wrote:
> > > Is it possible?
> > >
> > > Perhaps by specifying the cygwin service use a different port?
> > > Then one could "telnet host" and get the standard windows
> > > service or "telnet host <new_port>" and get the cygwin service.
> >
> > If you're running telnet with inetd, you just need to make a simple
> > change to inetd.conf. Say your current telnetd line looks like this:
> >
> > telnet stream tcp nowait root /usr/libexec/telnetd telnetd
> >
> > The first word in the line says "telnet" but what that really means
> > is that /etc/services is consulted for what port/protocol "telnet"
> > uses. If you look at /etc/services you'll see something like this:
> >
> > telnet 23/tcp
> >
> > If you changed that number to 24 and restarted inetd, you'd have inetd
> > listening for telnet connections on port 24.
>
> Correct. It's just the services file which is located elsewhere
> on WIndows systems. The file is
>
> ${WINDIR}/SERVICES on 9x/Me and
> ${SYSTEMROOT}/system32/drivers/etc/services on NT/2K/XP
AMAZING :))
Use the correct files and things work correctly (at least as expected).
Thanks Corinna.
jon
--
Jon H. LaBadie jcyg AT jgcomp DOT com
JG Computing
4455 Province Line Road (609) 252-0159
Princeton, NJ 08540-4322 (609) 683-7220 (fax)
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/
- Raw text -