OSError: [WinError 10013] An attempt was made to access a socket in a way forbidden by its access permissions, how to fix the error?
📁 method, string, Advanced Python Topics
Tell me, what is the problem? I need the program to run on any system without errors and without firewall and antivirus complaining
connection = socket.socket(socket.AF_INET, socket.SOCK_STREAM)connection.connect((""10.0.2.15"", 12345))The problem is found in these lines, I've already tried a bunch of ports, it doesn't help, antivirus is disabled, firewall is also off
Traceback (most recent call last): File ""sockettest.py"", line 10, in <module> connection.connect((""10.0.2.15"", 12345))OSError: [WinError 100 Separate reading and filtering:
a = [i for i in (int(input()) for _ in range(5)) if i % 10 == 0]# ---------- ================================ --------------# ^ read five integers ^# | |# -------------------------------------------# select multiples of tenSame thing
Log in to leave an answer