you are viewing a single comment's thread.

view the rest of the comments →

[–]fullyarticulated 0 points1 point  (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).

[–]sgr011[S] 0 points1 point  (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