OSError: [WinError 10013] An attempt was made to access a socket in a way forbidden by its access permissions

Symptom

When starting the standard interface service or adapter in Mech-Center, the following error occurs:
[WinError 10013] An attempt was made to access a socket in a way forbidden by its access permissions.

Cause

The TCP/IP communication port specified in the communication configuration of Mech-Center or Mech-Vision is being used by another software program, leading to access permission issues.

Solution

Option 1: Modify the port specified in the communication configuration of Mech-Center or Mech-Vision. Restart the software and try again.

Choose a port number greater than 2000 to avoid conflicts with ports occupied by the Windows operating system.

Option 2: Identify and terminate the program using the occupied port. Restart the software and try again.

Note: Please proceed with caution. Do not terminate system processes at will.

Steps:

  1. Press Win + R to open the Run dialog.

  2. Type cmd and press Enter to open the Command Prompt window.

  3. Inside the Command Prompt, type netstat -ano | findstr xxx, where xxx is the port number. For example, to find the process using port 10000, you can obtain the Process ID (PID) as circled in the image below:

  4. Press Ctrl + Alt + Delete to open Task Manager. In Task Manager, locate the process using the PID obtained earlier and terminate the task.
    image