[Python] Python application, port 8005 is occupied by an OS system process [duplicate]

Discussão em 'Python' iniciado por Stack, Agosto 6, 2025.

  1. Stack

    Stack Membro Participativo

    I am running a python application that should run on port 8005 (python3.10) PS E:\app_web\app_task> python .\manage.py I get the error: ERROR: [WinError 10013] An attempt was made to access a socket in a way forbidden by its access permissions I'm looking at what can work on this port: e:\Users\user1>netstat -aon | findstr :8005

    TCP 0.0.0.0:8005 0.0.0.0:0 LISTENING 4
    TCP [::]:8005 [::]:0 LISTENING 4


    e:\Users\user1>tasklist /FI "PID eq 4"

    Имя образа PID Имя сессии № сеанса Память
    ========================= ======== ================ =========== ============
    System 4 Services 0 136 КБ


    It turns out that the system process System has occupied port 8005. Is this possible? How can this be fixed?

    Continue reading...

Compartilhe esta Página