Cannot connect to local web server

I am running a web server (django) on my pc (localhost:8000), but I cannot connect to it from my laptop (both running manjaro 21.3)

I can ping


But if I try


I get the error

http: error: ConnectionError: HTTPConnectionPool(host=‘’, port=8000): Max retries exceeded with url: / (Caused by NewConnectionError(‘<urllib3.connection.HTTPConnection object at 0x7fa5234083a0>: Failed to establish a new connection: [Errno 113] No route to host’)) while doing a GET request to URL:

I get the same message if I try to connect to a non-existent ip address

Firewall is deactivated on both machines

What can I try next?

Hi @psionman,

This isn’t related to Manjaro. As you mentioned, it’s a web-server. Best would be to take it up with their support.

I can tell you, however, that it looks to me like some kind of configuration error on the Server’ side.

localhost is local and can’t reached over the network.

You need to configure your web server to listen on and/or on any address. But only localhost won’t work.


Thanks. It’s obvious really (and not a Manjaro problem at all), but I just needed to give the django server the ip address

python runserver

You can also try listen on address , that way it won’t need to be updated when the server’s IP address changes.

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.