?
Solved

cvs - cannot connect via wincvs

Posted on 2006-04-11
13
Medium Priority
?
775 Views
Last Modified: 2008-02-26
cvs repository is installed on linux. i can successfully login with command on the linux:

cvs -d :pserver:abc@localhost:/usr/local/cvs login

however, when i tried to use wincvs to access it on XP, i got the following error:

cvs [login aborted]: connect to 192.168.0.102:2401 failed: No route to host

then i shut down the firewall on XP and tried again, i got the same error. do u know what's wrong with my setting?

many thanks.
0
Comment
Question by:andersy
  • 7
  • 6
13 Comments
 
LVL 17

Expert Comment

by:Dushan De Silva
ID: 16430462
can you try to telnet to cvs server. Please try following command on command line and let me know the result

telnet 192.168.0.102 2401

BR Dushan
0
 
LVL 17

Expert Comment

by:Dushan De Silva
ID: 16430481
And if you can telnet try to "fetch list" before checkin.

BR Dushan
0
 
LVL 17

Expert Comment

by:Dushan De Silva
ID: 16430495
Following solution might help for you.

http://www.experts-exchange.com/Programming/Q_21797872.html

BR Dushan
0
Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

 

Author Comment

by:andersy
ID: 16433031
hi,

i cannot make the connection with
telnet 192.168.0.102 2401

i'd like to know if linux blocks the port from external. as i can login to cvs locally on linux.

thanks.
0
 

Author Comment

by:andersy
ID: 16433037
btw, ping to that machine is ok.

>ping 192.168.0.102

Pinging 192.168.0.102 with 32 bytes of data:

Reply from 192.168.0.102: bytes=32 time<1ms TTL=64
Reply from 192.168.0.102: bytes=32 time<1ms TTL=64
Reply from 192.168.0.102: bytes=32 time<1ms TTL=64
Reply from 192.168.0.102: bytes=32 time<1ms TTL=64

Ping statistics for 192.168.0.102:
    Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
    Minimum = 0ms, Maximum = 0ms, Average = 0ms
0
 
LVL 17

Expert Comment

by:Dushan De Silva
ID: 16433079
ping working mean network connection between to server is okay.
But telnet not working sence there is a come problem.

1.) Please login to cvs server installed machine and try to login cvs server using above same command which you have tried.(in Linux also same) with the same user details.

2.) If you can not connect check cvs server is up.

3.)  If user detais are wrong check passwd file under CVSROOT

4.)  If you can log, please check for any firewall issue in both side. (cvs installed server side outgoing 2401 port is open and your side incomming 2401 port is open correctly. )

If you need more info, don't hesitate to reply.

BR Dushan
0
 

Author Comment

by:andersy
ID: 16436801
thanks, BR Dushan,

1. it's ok to login cvs on linux.
cvs -d :pserver:andersy@192.168.0.102:/usr/local/cvs login

2. N/A

3. N/A

4. port 2401 should be open, i check it with nmap,
PORT     STATE SERVICE
22/tcp   open  ssh
25/tcp   open  smtp
80/tcp   open  http
111/tcp  open  rpcbind
631/tcp  open  ipp
2401/tcp open  cvspserver
3306/tcp open  mysql

do u have any clues why i can't login with wincvs on XP?

many thanks.
0
 
LVL 17

Expert Comment

by:Dushan De Silva
ID: 16437213
You are Welcome!
Yes, if cvs server is up and you can log into that with same user details.. and you can't telnet to cvs server with 2401 from your machine,  then could be the problem is in your machine's firewall.

And are you in same subnet and is there any ipmappings(iptable..etc) in your network, when you are connecting to the cvs server... please make sure all the tree(paths) comming from cvs server to your machine's ports are working properly... and you can check it in each point with telnet. To check path you can use tracert command. (tracert 192.168.0.102).

Please check it.

And is anyone in your network working with WinCVS correctly now?


BR Dushan
0
 

Author Comment

by:andersy
ID: 16460793
hi BR Dushan,

i have no idea about tracert, but i got the following result:

C:\>tracert 192.168.0.102

Tracing route to 192.168.0.102 over a maximum of 30 hops

  1    <1 ms    <1 ms    <1 ms  192.168.0.102

Trace complete.

would u kindly let me know if it's ok? btw, is it the problem on the firewall of linux. how can i can it?

many thanks.
0
 
LVL 17

Expert Comment

by:Dushan De Silva
ID: 16460855
Hi andersy,
Tracert command is showing how you are going to perticular place one by one. For a example
tracert www.google.com 
will shows, the connecting path of each server/routers one by one till google reach.

In here your results shows, your machine is directly connected with the cvs server.( no network mapping ...etc).

------------------------------------------------------------------------------------------------------------------------
Here is the conclusion.(If you can not "telnet 192.168.0.102 2401" from your machine.)
CVS server is up and no problem with it.
Difinitly problem is in following two points.
1.) Check 192.168.0.102 server's OUTGOING 2401 is not blocked by firewall.(Try to "telnet 192.168.0.102 2401" from another machine in the network.)
2.) Check firewall/spyware in your machine's have blocked INCOMMING 2401 port.

BR Dushan
0
 

Author Comment

by:andersy
ID: 16467632
Thanks for your comment. I'll check these points.
Many thanks.
0
 
LVL 17

Accepted Solution

by:
Dushan De Silva earned 1500 total points
ID: 16467747
You are Welcome andersy !

BR Dushan
0
 

Author Comment

by:andersy
ID: 16474601
Thanks, BR Dushan.

It works when I add an entry in iptables to accept port 2401.

Thanks for your help.

0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Originally, this post was published on Monitis Blog, you can check it here . It goes without saying that technology has transformed society and the very nature of how we live, work, and communicate in ways that would’ve been incomprehensible 5 ye…
How to fix a SonicWall Gateway Anti-Virus firewall blocking automatic updates to apps like Windows, Adobe, Symantec, etc.
Viewers will learn how to connect to a wireless network using the network security key. They will also learn how to access the IP address and DNS server for connections that must be done manually. After setting up a router, find the network security…
Michael from AdRem Software outlines event notifications and Automatic Corrective Actions in network monitoring. Automatic Corrective Actions are scripts, which can automatically run upon discovery of a certain undesirable condition in your network.…

850 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question