HOME BLOG

Archive for the ‘Apache’ Category

How to fix ‘Connection Refused’ error when connecting to Apache virtual host from other client ip addresses

Posted on: April 17th, 2020 by Olu No Comments

Hi folks,

In this post I talk about how to fix ‘Connection Refused’ error you may experience when trying to connect to your web application which has been set up as a virtual host on Apache server. The issue I discuss here is where you are able to access the virtual host from your local machine where the app is hosted, but not from any other machine.

It turns out that the solution to this problem lies in the server name used for the virtual host.

If you use a server name that ends in ‘.localhost’, other clients will not be able to connect to your application. So, if you have such a server name, rename it to something that does not end in ‘.localhost’.

That’s all for now. Till next time, happy software development.