Score:1

Enable firewall connection for python server from localhost

gl flag

I want to connect python server from my localhost to Ubuntu, but I get the following error:

Resolving localhost (localhost)... 127.0.0.1
Connecting to localhost (localhost)|127.0.0.1|:8000... failed: Connection refused.
ru flag
Connection Refused means that, typically, nothing is listening. There is no firewall block on "localhost" connections by default. However, if you do not have a Python program/server *listening* on port 8000, you can't *connect* to port 8000. Show the output of `sudo ss -tulpn | grep ':8000'`. If you have no output then your Python 'server' is not listening on port 8000
petep avatar
in flag
sudo ufw allow from 127.0.0.1 to 127.0.0.1 port 8000
aintgelic avatar
gl flag
I've tried sudo ss -tulpn | grep ':8000' and nothing showing up.. I also had tried the sudo ufw .. but still didn't work as mpboden state usually no firewall block on "localhost" connections by default
I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.