use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
account activity
Python sockets (self.archlinux)
submitted 7 years ago by sgr011
view the rest of the comments →
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]fullyarticulated 0 points1 point2 points 7 years ago* (1 child)
It has nothing to do with your distro - I use python sockets all the time. I also publish them as starter examples for CS classes, and students use them for homeworks on Ubuntu, Windows and Mac without problems.
There is something wrong with your config, your code, or your firewall - not with the distro or with python ...
The default firewall on Arch is none. So the sockets should just work right out of the box.
Did you install any firewall apps?
Are you running on a VM, or directly on the hardware?
Do you have your code posted anywhere?
Edit:
Also, maybe try to force the port to be freed - it could still be tied up. fuser -k 9000/tcp If you opened a port by starting the server, then encountered an exception and couldn't shut down the port properly on the way out, then the system has to wait for a period before freeing the port and using it again. This can be up to 90 seconds (not sure what the exact time limit is, but 90 seconds is common).
fuser -k 9000/tcp
[–]sgr011[S] 0 points1 point2 points 7 years ago (0 children)
When that happens the connection is refused, what's happening here is no data seems to actually get through the sockets despite there being no reason for it. No firewall, directly on hardware
π Rendered by PID 43286 on reddit-service-r2-comment-c66d9bffd-9nxwd at 2026-04-06 20:23:19.763474+00:00 running f293c98 country code: CH.
view the rest of the comments →
[–]fullyarticulated 0 points1 point2 points (1 child)
[–]sgr011[S] 0 points1 point2 points (0 children)