Error:No connection could be made because the target machine actively refused it

"Gaurav" <[email protected]> Wed, 06 May 2009 10:10:09 -0000
Newsgroups gmane.comp.version-control.cvs.gui.user
Message-ID <[email protected]>
Hi,


We have CVSNT 2.5.04 [(Zen) Build 3236] server running on RHEL ES 4. On client side we have WinCVS 2.0.2.4 on WinXP SP3.

I am trying to connect to the server using :pserver: 

WinCVS gives the following error message while trying to connect to the server: 
--------------------
cvs -z9 -d :pserver:[email protected]:2401/usr/local/cvsrep login 
Logging in to :pserver:[email protected]:2401:/usr/local/cvsrep
connect to 10.5.68.161:2401 failed: No connection could be made because the target machine actively refused it.
--------------------
After searching through the archives, I got that "This means CVSNT is not up and running or you have a firewall on that machine blocking access (port 2401) from outside."
So, I checked the following:
=====================
SERVER SIDE --->
[root@localhost ~]# iptables -L -n
Chain INPUT (policy ACCEPT)
target prot opt source destination
Chain FORWARD (policy ACCEPT)
target prot opt source destination
Chain OUTPUT (policy ACCEPT)
target prot opt source destination
[root@localhost ~]#
I think the firewall is OFF. Please correct me if I'm wrong.
--------------------
[root@localhost ~]# netstat -nap | grep 2401
[root@localhost ~]#
Does the above mean that 2401 on server side is not listening?
--------------------
[root@localhost ~]# netstat -nap | grep cvs
tcp 0 0 127.0.0.1:2402 0.0.0.0:* LISTEN 3426/cvslockd
tcp 0 0 ::1:2402 :::* LISTEN 3426/cvslockd
tcp 0 0 ::ffff:10.5.68.161:22 ::ffff:10.5.68.35:4089 ESTABLISHED 4861/sshd: syscvs [
udp 0 0 0.0.0.0:5353 0.0.0.0:* 3426/cvslockd
unix 3 [ ] STREAM CONNECTED 11947 4861/sshd: syscvs [
unix 2 [ ] DGRAM 7710 3426/cvslockd
--------------------
[root@localhost ~]# cat /etc/xinetd.d/cvspserver
service cvspserver
{
socket_type = stream
protocol = tcp
wait = no
user = cvs
passenv = PATH
log_type = FILE /var/log/cvspserver
server = /usr/local/bin/cvsnt
server_args = authserver
disable = no
}
=====================
CLIENT SIDE --->
On command prompt,
C:\Documents and Settings>telnet xx.x.xx.xxx 2401Connecting To xx.x.xx.xxx...Could not open connection to the host, on port 2401: Connect failed
--------------------
C:\Documents and Settings>netstat -na
Active Connections 
Proto Local Address Foreign Address State
TCP 0.0.0.0:2401 0.0.0.0:0 LISTENING
=====================

Can anyone please point me to the problem?


Regards,
Gaurav



------------------------------------

Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/cvsgui/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/cvsgui/join
    (Yahoo! ID required)

<*> To change settings via email:
    mailto:[email protected] 
    mailto:[email protected]

<*> To unsubscribe from this group, send an email to:
    [email protected]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/