Networking Forums

Networking Forums > Computer Networking > Linux Networking > telnet: connect to address 127.0.0.1: Connection refused

Reply
Thread Tools Display Modes

telnet: connect to address 127.0.0.1: Connection refused

 
 
phhs80@gmail.com
Guest
Posts: n/a

 
      11-19-2006, 01:06 PM
Dear All

>From searching the archives, I got this:


«Go to /etc/xinetd.d/telnet

and edit the line which says **disable = yes** so it reads
**disable = no** (ignore the **)

After that change restart xinetd with the command

service xinetd restart»

that I have followed, but still getting:

$ telnet localhost 9734
Trying 127.0.0.1...
telnet: connect to address 127.0.0.1: Connection refused
telnet: Unable to connect to remote host: Connection refused
$

I am running Fedora Core 6 and I have the telnet-server package
installed.

Any further ideas?

Thanks in advance,

Paul

 
Reply With Quote
 
 
 
 
David Schwartz
Guest
Posts: n/a

 
      11-19-2006, 01:39 PM

(E-Mail Removed) wrote:

> $ telnet localhost 9734
> Trying 127.0.0.1...
> telnet: connect to address 127.0.0.1: Connection refused
> telnet: Unable to connect to remote host: Connection refused
> $
>
> I am running Fedora Core 6 and I have the telnet-server package
> installed.


Where did '9734' come from?

DS

 
Reply With Quote
 
phhs80@gmail.com
Guest
Posts: n/a

 
      11-19-2006, 01:43 PM
David Schwartz wrote:
> > $ telnet localhost 9734
> > Trying 127.0.0.1...
> > telnet: connect to address 127.0.0.1: Connection refused
> > telnet: Unable to connect to remote host: Connection refused
> > $
> >
> > I am running Fedora Core 6 and I have the telnet-server package
> > installed.

>
> Where did '9734' come from?


I am trying to use the Ryacas package and from its site I get the
following:

«2. Telnet problems. If you are unable to get a connection at all try
to connect to yacas manually using:
telnet localhost 9734
and if that fails there is likely a configuration problem with telnet
on your machine.»

Ryacas is a package of R and its site is at

http://code.google.com/p/ryacas/

Paul

 
Reply With Quote
 
C.J. Steele
Guest
Posts: n/a

 
      11-19-2006, 02:02 PM
Use `netstat -nl | grep -- ^tcp` to identify listening services and
`lsof -i:<port>` (where "<port>" is the port-number identified by
netstat) to identify what service is listening on said port. Once
you've verified what port you're connecting to, show us a listing of
your ipchains (`iptables -nL`) rules.

If `netstat` and `lsof` are foreign to you, use `nmap -p 1-65535
localhost` to see what services you've got open...

-C

On Nov 19, 8:43 am, phh...@gmail.com wrote:
> David Schwartz wrote:
> > > $ telnet localhost 9734
> > > Trying 127.0.0.1...
> > > telnet: connect to address 127.0.0.1: Connection refused
> > > telnet: Unable to connect to remote host: Connection refused
> > > $

>
> > > I am running Fedora Core 6 and I have the telnet-server package
> > > installed.

>
> > Where did '9734' come from?I am trying to use the Ryacas package and from its site I get the

> following:
>
> «2. Telnet problems. If you are unable to get a connection at all try
> to connect to yacas manually using:
> telnet localhost 9734
> and if that fails there is likely a configuration problem with telnet
> on your machine.»
>
> Ryacas is a package of R and its site is at
>
> http://code.google.com/p/ryacas/
>
> Paul


 
Reply With Quote
 
phhs80@gmail.com
Guest
Posts: n/a

 
      11-19-2006, 02:23 PM
C.J. Steele wrote:
> Use `netstat -nl | grep -- ^tcp` to identify listening services and
> `lsof -i:<port>` (where "<port>" is the port-number identified by
> netstat) to identify what service is listening on said port. Once
> you've verified what port you're connecting to, show us a listing of
> your ipchains (`iptables -nL`) rules.
>
> If `netstat` and `lsof` are foreign to you, use `nmap -p 1-65535
> localhost` to see what services you've got open...


I get this:

# nmap -p 1-65535 localhost

Starting Nmap 4.11 ( http://www.insecure.org/nmap/ ) at 2006-11-19
15:21 WET
Interesting ports on localhost.localdomain (127.0.0.1):
Not shown: 65522 closed ports
PORT STATE SERVICE
22/tcp open ssh
23/tcp open telnet
25/tcp open smtp
111/tcp open rpcbind
139/tcp open netbios-ssn
445/tcp open microsoft-ds
631/tcp open ipp
885/tcp open unknown
904/tcp open unknown
2207/tcp open unknown
2208/tcp open unknown
8000/tcp open http-alt
10000/tcp open snet-sensor-mgmt

Nmap finished: 1 IP address (1 host up) scanned in 3.442 seconds
#

Paul

> On Nov 19, 8:43 am, phh...@gmail.com wrote:
> > David Schwartz wrote:
> > > > $ telnet localhost 9734
> > > > Trying 127.0.0.1...
> > > > telnet: connect to address 127.0.0.1: Connection refused
> > > > telnet: Unable to connect to remote host: Connection refused
> > > > $

> >
> > > > I am running Fedora Core 6 and I have the telnet-server package
> > > > installed.

> >
> > > Where did '9734' come from?I am trying to use the Ryacas package and from its site I get the

> > following:
> >
> > «2. Telnet problems. If you are unable to get a connection at all try
> > to connect to yacas manually using:
> > telnet localhost 9734
> > and if that fails there is likely a configuration problem with telnet
> > on your machine.»
> >
> > Ryacas is a package of R and its site is at
> >
> > http://code.google.com/p/ryacas/
> >
> > Paul


 
Reply With Quote
 
C.J. Steele
Guest
Posts: n/a

 
      11-19-2006, 07:56 PM
Well, judeing from the output of nmap, I think it safe to say we know
why you're getting a connection refused when you try to telnet to
9734... there's nothing running on 9734.

I bet you don't have any trouble connecting to the standard telnet
port, so what happens when you just `telnet localhost`?

Cheers,
-C

On Nov 19, 9:23 am, phh...@gmail.com wrote:
> C.J. Steele wrote:
> > Use `netstat -nl | grep -- ^tcp` to identify listening services and
> > `lsof -i:<port>` (where "<port>" is the port-number identified by
> > netstat) to identify what service is listening on said port. Once
> > you've verified what port you're connecting to, show us a listing of
> > your ipchains (`iptables -nL`) rules.

>
> > If `netstat` and `lsof` are foreign to you, use `nmap -p 1-65535
> > localhost` to see what services you've got open...I get this:

>
> # nmap -p 1-65535 localhost
>
> Starting Nmap 4.11 (http://www.insecure.org/nmap/) at 2006-11-19
> 15:21 WET
> Interesting ports on localhost.localdomain (127.0.0.1):
> Not shown: 65522 closed ports
> PORT STATE SERVICE
> 22/tcp open ssh
> 23/tcp open telnet
> 25/tcp open smtp
> 111/tcp open rpcbind
> 139/tcp open netbios-ssn
> 445/tcp open microsoft-ds
> 631/tcp open ipp
> 885/tcp open unknown
> 904/tcp open unknown
> 2207/tcp open unknown
> 2208/tcp open unknown
> 8000/tcp open http-alt
> 10000/tcp open snet-sensor-mgmt
>
> Nmap finished: 1 IP address (1 host up) scanned in 3.442 seconds
> #
>
> Paul
>
> > On Nov 19, 8:43 am, phh...@gmail.com wrote:
> > > David Schwartz wrote:
> > > > > $ telnet localhost 9734
> > > > > Trying 127.0.0.1...
> > > > > telnet: connect to address 127.0.0.1: Connection refused
> > > > > telnet: Unable to connect to remote host: Connection refused
> > > > > $

>
> > > > > I am running Fedora Core 6 and I have the telnet-server package
> > > > > installed.

>
> > > > Where did '9734' come from?I am trying to use the Ryacas package and from its site I get the
> > > following:

>
> > > «2. Telnet problems. If you are unable to get a connection at all try
> > > to connect to yacas manually using:
> > > telnet localhost 9734
> > > and if that fails there is likely a configuration problem with telnet
> > > on your machine.»

>
> > > Ryacas is a package of R and its site is at

>
> > >http://code.google.com/p/ryacas/

>
> > > Paul


 
Reply With Quote
 
David Schwartz
Guest
Posts: n/a

 
      11-19-2006, 09:53 PM

(E-Mail Removed) wrote:

> I am trying to use the Ryacas package and from its site I get the
> following:
>
> «2. Telnet problems. If you are unable to get a connection at all try
> to connect to yacas manually using:
> telnet localhost 9734
> and if that fails there is likely a configuration problem with telnet
> on your machine.»
>
> Ryacas is a package of R and its site is at
>
> http://code.google.com/p/ryacas/


Okay, you have some massive confusion. A 'telnet server' is used to
provide the telnet service and has nothing to do with some other
services, such as Ryacas. The confusion comes from the fact that you
are using the telnet *client* to connect to a Ryacas server. Whether or
not you have a telnet server won't make any difference, since that's
not what you're trying to connect to.

The steps that you took to get your telnet server running aren't going
to help you at all. You need to get Ryacas running, and then you can
connect to it with any client you want.

DS

 
Reply With Quote
 
phhs80@gmail.com
Guest
Posts: n/a

 
      11-19-2006, 10:55 PM
On Nov 19, 10:53 pm, "David Schwartz" <dav...@webmaster.com> wrote:
> > I am trying to use the Ryacas package and from its site I get the
> > following:

>
> > «2. Telnet problems. If you are unable to get a connection at all try
> > to connect to yacas manually using:
> > telnet localhost 9734
> > and if that fails there is likely a configuration problem with telnet
> > on your machine.»

>
> > Ryacas is a package of R and its site is at

>
> >http://code.google.com/p/ryacas/Okay, you have some massive confusion. A'telnet server' is used to

> provide the telnet service and has nothing to do with some other
> services, such as Ryacas. The confusion comes from the fact that you
> are using the telnet *client* to connect to a Ryacas server. Whether or
> not you have a telnet server won't make any difference, since that's
> not what you're trying to connect to.
>
> The steps that you took to get your telnet server running aren't going
> to help you at all. You need to get Ryacas running, and then you can
> connect to it with any client you want.


Thanks to all. The problem is solved and the solution is at

http://marc.theaimsgroup.com/?l=r-he...7290826793&w=2

Paul


Paul

 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
ypserv refused connect problems passwd.adjunct map linuxteam@gmail.com Linux Networking 0 03-07-2005 07:29 AM
TCP connection refused Bonj Linux Networking 8 02-26-2005 10:47 AM
Samba Connection Refused? W. Watson Linux Networking 0 12-13-2004 01:42 AM
Connection to itself refused Alec Linux Networking 5 07-11-2004 10:34 PM
The connection was refused when trying to connect to ... Dan Linux Networking 3 09-11-2003 01:37 PM



1 2 3 4 5 6 7 8 9 10 11