Cannot start eventstore on development box. Failed to listen on TCP endpoint

Having this issue on my development machine for quite some time.

Things I have tried:

  1. Removed and added both machine ip and 127.0.0.1 as web listener using netsh

  2. Disabled windows firewall and anti virus

  3. Tried to change the port eventstore is listening on.

  4. Trued to start event store with ext-ip param to change the ipaddress.

  5. removed and re-installed eventstore 4.0.3-hotfix1

None of this works. Doesn’t seem to matter what ip or port I use I get the same problem. Any ideas welcome.

Starting eventstore this way:

EventStore.ClusterNode.exe --db ./db --log ./logs --run-projections=all --start-standard-projections=true

output in console window:

[29976,01,12:46:01.069] Quorum size set to 1

[29976,01,12:46:01.074] Cannot find plugins path: C:\EventStore-OSS-Win-v4.0.3-hotfix1\plugins

[29976,01,12:46:01.347] INSTANCE ID: e8e36627-c822-4d62-8570-1ccf39293611

[29976,01,12:46:01.347] DATABASE: ./db

[29976,01,12:46:01.347] WRITER CHECKPOINT: 0 (0x0)

[29976,01,12:46:01.347] CHASER CHECKPOINT: 0 (0x0)

[29976,01,12:46:01.347] EPOCH CHECKPOINT: -1 (0xFFFFFFFFFFFFFFFF)

[29976,01,12:46:01.347] TRUNCATE CHECKPOINT: -1 (0xFFFFFFFFFFFFFFFF)

[29976,01,12:46:01.710] MessageHierarchy initialization took 00:00:00.2350642.

[29976,01,12:46:01.904] Opened ongoing ./db\chunk-000000.000000 as version 3

[29976,01,12:46:01.941] CACHED TFChunk #0-0 (chunk-000000.000000) in 00:00:00.0125831.

[29976,01,12:46:02.292] Starting MiniWeb for /web/es/js/projections ==> C:\EventStore-OSS-Win-v4.0.3-hotfix1\projections

[29976,01,12:46:02.292] Starting MiniWeb for /web/es/js/projections/v8/Prelude ==> C:\EventStore-OSS-Win-v4.0.3-hotfix1\Prelude

[29976,01,12:46:02.292] Binding MiniWeb to /web/es/js/projections/{*remaining_path}

[29976,01,12:46:02.304] Binding MiniWeb to /web/es/js/projections/v8/Prelude/{*remaining_path}

[29976,01,12:46:02.348] Starting MiniWeb for /web ==> C:\EventStore-OSS-Win-v4.0.3-hotfix1\clusternode-web

[29976,01,12:46:02.348] Binding MiniWeb to /web/{*remaining_path}

Exiting with exit code: 1.

Exit reason: An attempt was made to access a socket in a way forbidden by its access permissions

[29976,12,12:46:02.380] ========== [127.0.0.1:2112] SYSTEM INIT…

[29976,12,12:46:02.443] Starting Normal TCP listening on TCP endpoint: 127.0.0.1:1113.

[29976,12,12:46:02.443] Failed to listen on TCP endpoint: 127.0.0.1:1113.

[29976,13,12:46:02.466] TableIndex initialization…

[29976,13,12:46:02.482] ReadIndex building…

[29976,13,12:46:02.482] ReadIndex rebuilding done: total processed 0 records, time elapsed: 00:00:00.0039989.

[29976,12,12:46:02.501] Exiting with exit code: 1.

Exit reason: An attempt was made to access a socket in a way forbidden by its access permissions

Did you try running it as administrator? (right click on cmd or powershell and run as administrator)