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

Gaurav Chhabra <[email protected]>
Newsgroups gmane.comp.version-control.cvs.windows-nt.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:

I earlier got some error messages (
http://www.cvsnt.org/pipermail/cvsnt/2009-April/032098.html) and I am still
struggling, trying to establish connection between client & server. I am now
getting the following error:
--------------------
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
_______________________________________________
cvsnt mailing list
[email protected]
http://www.cvsnt.org/cgi-bin/mailman/listinfo/cvsnt

Upgrade to CVS Suite for more features and support: http://march-hare.com/cvsnt/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.