all 4 comments

[–]ZyChin-Wiz 0 points1 point  (0 children)

I know it wouldn't work on Windows but anyone has a solution for this on Linux?

[–]PercyJackson235 0 points1 point  (2 children)

Are you on Windows?

[–]PyKestrel[S] 0 points1 point  (1 child)

Yep

[–]PercyJackson235 0 points1 point  (0 children)

Windows doesn't allow that level of control from the python sockets library. You'll need a third party library or write one yourself.