PDA

View Full Version : [all variants] telnet: Unable to connect to remote host: Connection refused



k33bz
November 10th, 2008, 10:44 PM
I am trying to get firewatir installed and configured, but right now I am having problems connecting to the Localhost via telnet,
keebler@k33bz-mobile:~$ telnet localhost 9997
Trying 127.0.0.1...
telnet: Unable to connect to remote host: Connection refused



sudo netstat -an | grep 9997


shows no print out. I cant even connect via port 25. No matter what port I try to connect to I get Unable to connect to remote host: Connection refused.

What do I do?

k33bz
November 10th, 2008, 10:53 PM
bump

MasterSander
November 10th, 2008, 10:53 PM
are the ports opened on your router and on the host computer?

k33bz
November 10th, 2008, 10:55 PM
how do I check that?

MasterSander
November 10th, 2008, 10:57 PM
for the ones on your router, you need to login to it, it depends on your router how to do this and what the username and pass is. try entering 192.168.1.1 in browser or your own ip adress, try googling your router name as well

k33bz
November 10th, 2008, 11:00 PM
I am trying to connect to my local machine, what does my router have to do with that?

MasterSander
November 10th, 2008, 11:01 PM
it passes through there

k33bz
November 10th, 2008, 11:11 PM
Dont make much since, but Ok, I am in there, (linksys router) I am in the area where it says port range. Is that the right area? If so I get this when I try to enable anything.
You cannot use the Router IP, network or broadcast address

chrisod
November 11th, 2008, 12:21 AM
If you have the desktop version of Ubuntu I think the telnet daemon is turned off my default, may not even be installed. Try the instructions here (http://www.ubuntugeek.com/setting-up-a-telnet-server-in-ubuntu.html)

k33bz
November 11th, 2008, 09:32 AM
still does the same thing, and I didnt see telnet in my services

anubhavrocks
November 11th, 2008, 09:43 AM
I am trying to get firewatir installed and configured, but right now I am having problems connecting to the Localhost via telnet,
keebler@k33bz-mobile:~$ telnet localhost 9997
Trying 127.0.0.1...
telnet: Unable to connect to remote host: Connection refused



sudo netstat -an | grep 9997


shows no print out. I cant even connect via port 25. No matter what port I try to connect to I get Unable to connect to remote host: Connection refused.

What do I do?

Please check if your telnet server is up and working.
I think its called "telnetd"
Also remember to check
/etc/inetd.conf

k33bz
November 13th, 2008, 09:25 PM
nothing prints out when I telnetd. and the values were off on the /etc/inetd.conf but I changed them to be on.
keebler@k33bz-mobile:~$ telnet localhost 25
Trying 127.0.0.1...
telnet: Unable to connect to remote host: Connection refused
keebler@k33bz-mobile:~$ telnet localhost
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
Connection closed by foreign host.
keebler@k33bz-mobile:~$


Which I use to be able to get into my local host before(with out defying a port), now I cant.