All the manuals seems to assume that port 2401 is always used for a
pserver connection. Well, not on our AIX-box...
So, how do I connect to an alternate port? I know from our WinCvs
clients that it can be done, but how do I persuade the standard UNIX-
client? My best guess would be changing the CVSROOT - just can't
figure out how...
/Torben B. Christensen
There's a patch floating around that allows you to export
CVS_CLIENT_PORT=2402 before running the client that I've used with some
success. I've attached the copy I've used which works against CVS
1.10.x. If I remember right this is from Derek Price at Open Ave.
--
Cheers,
Derek
_____________________________________________________________________
Derek Scherger Echologic Software Corporation
mailto:de...@echologic.com http://www.echologic.com
But I still wonder if configuring-by-patching really is necessary?
I quote from Karl Fogel's CVS-book:
"Before running through the steps needed to set up the password server,
let's examine how such connections work in the abstract. When a remote CVS
client uses the :pserver: method to connect to a repository, the client is
actually contacting a specific port number on the server machine -
specifically, port number 2401 (which is 49 squared, if you like that sort
of thing). Port 2401 is the designated default port for the CVS pserver,
although one could arrange for a different port to be used as long as both
client and server agree on it. "
Sadly, KF doesn't reveal HOW to arrange it...
/Torben
There _is_ an even better fix if you feel like downloading the dev version of the source from the CVS repository. It allows you to specify an alternative port as part of CVSROOT. There's a small issue yet with the treatment of the password file, but it's no show stopper and I should have it fixed in another day or two. Of course, you'll still have to compile that.
Derek
-- Derek Price CVS Solutions Architect ( http://CVSHome.org ) mailto:dpr...@openavenue.com OpenAvenue ( http://OpenAvenue.com ) -- .. one of the main causes of the fall of the Roman Empire was that, lacking zero, they had no way to indicate successful termination of their C programs. - Robert Firth
If you only want to change the port used from the default,
then change the port for cvspserver in /etc/services. The
clients, and inetd will resolve the mapping from there.
//Bill
"Derek R. Price" wrote:
>
> Unfortunately, with versions of CVS 1.11 and earlier your
> only option is to patch, change the port pserver is
> assigned to in your /etc/services file or whatever it is
> under AIX that you have to do to get a different result
> from getservbyname, or compile a version of CVS after
> changing the value of CVS_AUTH_PORT in src/client.c.
> Unfortunately, except for the patch, you are still stuck
> with the same alternative port every time.
>
> There _is_ an even better fix if you feel like downloading
> the dev version of the source from the CVS repository. It
> allows you to specify an alternative port as part of
> CVSROOT. There's a small issue yet with the treatment of
> the password file, but it's no show stopper and I should
> have it fixed in another day or two. Of course, you'll
> still have to compile that.
>
> Derek
>
> --
> Derek Price CVS Solutions Architect ( http://CVSHome.org )
> mailto:dpr...@openavenue.com OpenAvenue ( http://OpenAvenue.com )
> --
> ... one of the main causes of the fall of the Roman Empire was that,
donald
On Thu, Jan 11, 2001 at 10:52:08AM -0500, Larry Jones wrote:
> Torben B. Christensen writes:
> >
> > All the manuals seems to assume that port 2401 is always used for a
> > pserver connection. Well, not on our AIX-box...
>
> How do you tell your mail program to use a port other than 25 for SMTP?
>
> Port 2401 is officially registered to CVS -- you really ought to fix
> your AIX box so that it isn't misusing a reserved port.
>
> -Larry Jones
>
> Start tying the sheets together. We'll go out the window. -- Calvin
Donald Sharp wrote:
>
> >From my recollections, aix only had somthing listed at port 2401
> in /etc/services. It wasn't being used( unless you happen to be
> using that service, and as I recall it was something very esoteric ).
> I would recommend just changing your /etc/services to
> point at cvs at port 2401
>
IIRC, it was something to do with printing in a cluster, which
could be vital to some sites.
You could complain to IBM. They might listen, but I don't see
them doing much about it. They are the people that did this
in the first place. (On the other hand, looking at /etc/services
on the AIX box I've got access to, it does list
writesrv 2401/tcp # Temporary Port Number
so maybe IBM would be willing to move it to a non-reserved port
number. In a later OS version.)
The issue with 2401 is not that the server can't be changed to
another port with some quick config file changes, but that the
clients know that 2401 is the right port. (Similarly, I don't
know what uses writesrv, and that would be practically impossible
to change locally.)
> > Port 2401 is officially registered to CVS -- you really ought to fix
> > your AIX box so that it isn't misusing a reserved port.
> >
There are reasons I don't like AIX. This is one of them. It flunks
"Plays well with others".
--
David H. Thornley Software Engineer
at CES International, Inc.: David.T...@ces.com or (763)-694-2556
at home: (612)-623-0552 or da...@thornley.net or
http://www.visi.com/~thornley/david/
I did consider changing the standard IBM setup, but gave it up (David
Thornley's reply explains excactly why - thank you, David).
I'm no AIX expert and I want to sleep at night... so I went for a free port.
Personally I think that when a program *insists* on using a certain port it
is as annoying as when a program insists on installing in a certain
directory on your C:-drive!
And to wrap it all up: I understand from Derek Price that a future release
of CVS will allow you to change the port, so for now I'll just build a
patched version and wait...
/Torben
PS. Sorry that I've created two threads on the same issue - if this creates
yet another thread I hope someone will explain a beginner how to avoid it
> -----Original Message-----
> From: larry...@sdrc.com [mailto:larry...@sdrc.com]
> Sent: 11. januar 2001 16:52
> To: to...@wmdata.com
> Cc: info...@gnu.org
> Subject: Re: Connecting to a CVS-server on port *2402*
>
>
> Torben B. Christensen writes:
> >
> > All the manuals seems to assume that port 2401 is always used for a
> > pserver connection. Well, not on our AIX-box...
>
> How do you tell your mail program to use a port other than 25
> for SMTP?
>
> Port 2401 is officially registered to CVS -- you really ought to fix
> your AIX box so that it isn't misusing a reserved port.
>
Rumor has it that there's a patch available from IBM to fix their
mistake.
> Personally I think that when a program *insists* on using a certain port it
> is as annoying as when a program insists on installing in a certain
> directory on your C:-drive!
I would agree with you except that there is no official registration
authority for directories on the C: drive, whereas there *is* an
official registration authority for TCP/IP port numbers. IBM has no
business using a port number in the registered range without registering
it, particularly not one that's already registered to someone else.
That said, I do support Derek's change to allow specifying the port
number in $CVSROOT, but I strongly encourage you to let IBM know you're
not happy with the situation. They need to understand that such
antisocial behavior is unacceptable.
-Larry Jones
My "C-" firmly establishes me on the cutting edge of the avant-garde.
-- Calvin
Have a look at http://www.isi.edu/in-notes/iana/assignments/port-numbers (long file)
(you get there from the www.iana.org homepage)
Snippet:
-------------------
# Clay Maeckal <clay_m...@filemaker.com>
opequus-server 2400/tcp OpEquus Server
opequus-server 2400/udp OpEquus Server
# Gavin Hutchinson <gav...@tesl.com>
cvspserver 2401/tcp cvspserver
cvspserver 2401/udp cvspserver
# Jim Kingdon <kin...@harvey.cyclic.com>
taskmaster2000 2402/tcp TaskMaster 2000 Server
taskmaster2000 2402/udp TaskMaster 2000 Server
taskmaster2000 2403/tcp TaskMaster 2000 Web
taskmaster2000 2403/udp TaskMaster 2000 Web
# Ed Odjaghian <e...@datacap.com>
iec870-5-104 2404/tcp IEC870-5-104
iec870-5-104 2404/udp IEC870-5-104
# Walter Eichelburg <e...@sat-automation.com>
trc-netpoll 2405/tcp TRC Netpoll
trc-netpoll 2405/udp TRC Netpoll
------------------
So if ou simply use somethin' else but 2401 you may be bound for the next collision...
Harald
--
iXpoint Informationssysteme GmbH #
Daimlerstr. 3 # Harald Kucharek
76275 Ettlingen # Harald....@ixpoint.de
Tel/Fax +49 7243 3775-0/77 # www.ixpoint.de