telnet: connect to address 127.0.0.1: Connection refused

Discussion in 'Linux Networking' started by phhs80, Nov 19, 2006.

  1. phhs80

    phhs80 Guest

    Dear All
    «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
     
    phhs80, Nov 19, 2006
    #1
    1. Advertisements

  2. Where did '9734' come from?

    DS
     
    David Schwartz, Nov 19, 2006
    #2
    1. Advertisements

  3. phhs80

    phhs80 Guest

    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
     
    phhs80, Nov 19, 2006
    #3
  4. phhs80

    C.J. Steele Guest

    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
     
    C.J. Steele, Nov 19, 2006
    #4
  5. phhs80

    phhs80 Guest

    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
     
    phhs80, Nov 19, 2006
    #5
  6. phhs80

    C.J. Steele Guest

    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
     
    C.J. Steele, Nov 19, 2006
    #6
  7. 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
     
    David Schwartz, Nov 19, 2006
    #7
  8. phhs80

    phhs80 Guest

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

    http://marc.theaimsgroup.com/?l=r-help&m=116397290826793&w=2

    Paul


    Paul
     
    phhs80, Nov 19, 2006
    #8
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.