[cvsnt] Re: how to access over internet

Bo Berglund bo.berglund at telia.com
Sun Jun 6 23:29:46 BST 2004


Community technical support mailing list was retired 2010 and replaced with a professional technical support team. For assistance please contact: Pre-sales Technical support via email to sales@march-hare.com.


On Sun, 6 Jun 2004 23:10:53 +0200, "Jens Meyer" <coderacc at yahoo.de>
wrote:

>Hi,
>
>i installed CVSNT 2.0.43 on WinXP.
>Installation was fine.
>
>But is it possible and than how, to connect to the cvs
>server from internet ?
>My friend use WinCVS 1.3
>
>So what must i do to give him access to the repository ?
>SSH is not neede, only simple access
>
>Jens
>

1. The CVSNT server machine should run XP-Pro. Does it? XP Home is no
good...

2. Configure your Internet firewall to map the port 2401 to the CVSNT
server IP on your local network.

3. On the CVSNT server add an account for your friend.

4. On the friend's PC you do the following:

5. Open the Windows\system32\drivers\etc\HOSTS file in an editor

6. Enter one line with the following data:
<Internet ip of CVS server firewall>  MyCvsServer
Note that the IP you have to enter is the address the CVS server
*firewall* uses to access the Internet, not the IP of the server
itself. Example:
62.73.84.95  MyCvsServer
(of course you can use another name than MyCvsServer if you like)

7. Save the HOSTS file

8. Now open a command prompt and enter the following commands:
set CVSROOT=:sspi:<accountname>@MyCvsServer:/<your_repository>
 here the <..> are placeholders for values you have to supply like:
  :sspi:johnd at MyCvsServer:/testrepo
cvs login
(now enter the password for the account)

9. If you got this far without errors you are now set up to access the
server via the Internet. You can check if it works in the same command
window as in step 8 (if you close it then you will have to re-enter
the CVSROOT command since it is not persistent).:
cvs ls CVSROOT
This should list the files inside the CVSROOT folder that always
exists in an initialized CVS repository.

Note that the trick using the HOSTS file is done to make it possible
to later change the IP address of the server if his ISP changes it.
This happens when DSL users have DHCP to give them the IP.

Also: the above requires that the cvs.exe program on your friend's PC
is actually in a folder that is mentioned on the path. If it is not
then you will have to modify the PATH variable to include the folder
where the cvs.exe is located (it comes with WinCvs).


/Bo
(Bo Berglund, developer in Sweden)



More information about the cvsnt mailing list
Download the latest CVSNT, TortosieCVS, WinCVS etc. for Windows 8 etc.
@CVSNT on Twitter   CVSNT on Facebook