LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   127.0.0.1 connection refused (https://www.linuxquestions.org/questions/linux-newbie-8/127-0-0-1-connection-refused-771988/)

criathar 11-27-2009 02:46 PM

127.0.0.1 connection refused
 
Hi everyone. This question is regarding fedora12.
Can someone tell me how to set up the port 8080 and or tell me why I cannot connect to localhost 127.0.0.1?

telnet: 127.0.0.1:8080: Name or service not known
127.0.0.1:8080: Unknown host

[root@impulse xe]# telnet 127.0.0.1
Trying 127.0.0.1...
telnet: connect to address 127.0.0.1: Connection refused
[root@impulse xe]#


I tried to add port 8080 to firewall under other ports, but still doesn't work.

bathory 11-27-2009 03:53 PM

Hi,

Opening a port in your firewall is not enough. There must be something listening on that port, so you can get an answer.
To see what ports are listening on your box, run:
Code:

netstat -tan|grep LISTEN
Also
Quote:

telnet: 127.0.0.1:8080: Name or service not known
is not correct. To telnet to a port different than the default port 23 you need to use:
Code:

telnet: 127.0.0.1 8080
Quote:

telnet: connect to address 127.0.0.1: Connection refused
That means that there is no telnend running on localhost. You have to install/start the telnet service in order to use it. For security reasons it's always better to keep telnet disabled and use ssh to connect to a remote host

Regards


All times are GMT -5. The time now is 09:33 AM.