How to fix Linux Error 111: Connection Refused

Fix-Linux-Error-111-Connection-Refused

The error “Linux Error 111: Connection Refused” normally occurs when the host file does not have the appropriate server address or name. It can also arise when the loopback address is missing.

Connection Refused Error: 

Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1521)))
TNS-12547: TNS:lost contact
TNS-12560: TNS:protocol adapter error
TNS-00517: Lost contact
Linux Error: 104: Connection reset by peer
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=wrath.ehjconsultancy.com)(PORT=1521)))
TNS-12541: TNS:no listener
TNS-12560: TNS:protocol adapter error
TNS-00511: No listener
Linux Error: 111: Connection refused

Steps to fix Connection Refused Error:

Steps to fix Connection Refused Error:

To resolve the error, edit /etc/hosts and ensure that the hostname and address are correct. Also, check that 127.0.0.1 localhost.localdomain localhost are present and one of the solution for this error is to edit the host file. So, let’s see how to fix the connection refused error:

1.      Open the terminal window.

2.      Enter the command “sudo nano /etc/hosts”.

3.      Then enter the domain username and password.

4.      Now edit the /etc/host file.

Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST= "input your host name")(PORT=1521)))127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4
::1 localhost localhost.localdomain localhost6 localhost6.localdomain6 
192.168.1.1 "input your hostname" oracle

5.      Save and restart.

Hope this helps you to fix the Linux Error 111: Connection Refused and if you need any assistance feel free to reach us.

To get more updates you can follow us on Facebook, Twitter, LinkedIn

Subscribe to get free blog content to your Inbox
Loading

Written by actsupp-r0cks