Connection to localhost refused

Karl Auer kauer at biplane.com.au
Tue Aug 13 04:01:33 UTC 2024


On Tue, 2024-08-13 at 13:45 +1000, Phil wrote:
> This is something that I haven't needed to for many years and now
> that I need to, the connection is refused. I can successfully ping
> localhost.

"Connection to localhost refused", as a problem statement, is missing a
lot of information. Connecting how, to what port (if TCP/UDP), using
what software, expecting what response?

In general, something has to be listening on the interface you are
connecting to. "Connection refused" generally indicates that either
nothing is listening, or a filter of some sort is actively rejecting
connections.

Concrete example: Connecting to localhost on TCP/IP port 80 using a web
browser will get you "connection refused" unless there is a web server
running on the computer, bound to port 80 on the localhost interface.

Regards, K.

-- 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Karl Auer (kauer at biplane.com.au, he/him)
http://www.biplane.com.au/kauer






More information about the ubuntu-users mailing list