Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
Date: Tue, 25 Jun 2002 21:29:42 -0700
From: Brendan Conoboy <blc@redhat.com>
To: Jon LaBadie <jcyg@jgcomp.com>
Cc: cygwin@cygwin.com
Subject: Re: simultaneous windows and cygwin telnet service
Message-ID: <20020626042942.GL4051@redhat.com>
References: <20020626033229.GA21296@butch.jgcomp.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <20020626033229.GA21296@butch.jgcomp.com>
User-Agent: Mutt/1.3.28i

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.

-- 
-Brendan (blc@redhat.com)

--
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/

