[GH-ISSUE #769] server.py: error: port 8080 is already in use #348

Closed
opened 2026-11-04 01:42:11 +07:00 by bsakaguchi · 3 comments
Owner

Originally created by @XeonG on GitHub (Oct 4, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/769

Todays update... I checked and there is nothing using port 8080, was fine yesterday aswel

usage: server.py [-h] [--engine {mock,strata}] [--config CONFIG] [--host HOST]
[--script SCRIPT] [--port PORT] [--gpu GPU] [--tokenizer TOKENIZER] [--open]
[--fit-max-tokens] [--api-key API_KEY] [--mcp-config MCP_CONFIG] [--lazy]
[--api-monitor] [--idle-unload SECONDS]
[--min-free-vram-mib MIN_FREE_VRAM_MIB] [--before-load BEFORE_LOAD]
server.py: error: port 8080 is already in use - is Strata (or another server) already running? Close it, or start this one with a different --port
Press any key to continue . . .

even changing it with --port 8081 doesn't work

Image
Originally created by @XeonG on GitHub (Oct 4, 2026). Original GitHub issue: https://github.com/Niko1221/Strata/issues/769 Todays update... I checked and there is nothing using port 8080, was fine yesterday aswel usage: server.py [-h] [--engine {mock,strata}] [--config CONFIG] [--host HOST] [--script SCRIPT] [--port PORT] [--gpu GPU] [--tokenizer TOKENIZER] [--open] [--fit-max-tokens] [--api-key API_KEY] [--mcp-config MCP_CONFIG] [--lazy] [--api-monitor] [--idle-unload SECONDS] [--min-free-vram-mib MIN_FREE_VRAM_MIB] [--before-load BEFORE_LOAD] server.py: error: port 8080 is already in use - is Strata (or another server) already running? Close it, or start this one with a different --port Press any key to continue . . . even changing it with --port 8081 doesn't work <img width="993" height="536" alt="Image" src="https://github.com/user-attachments/assets/638cb0ff-23d0-48a0-8ee5-6df56e84d22c" />
Author
Owner

@Guslletas commented on GitHub (Oct 5, 2026):

Try with higher numbers, I had this issue and tried with ports in the 50000+ range and it worked. Asked AI and might be related to WSL2 and/or HyperV reserving a pretty big range of ports or something like that.

<!-- gh-comment-id:5994811901 --> @Guslletas commented on GitHub (Oct 5, 2026): Try with higher numbers, I had this issue and tried with ports in the 50000+ range and it worked. Asked AI and might be related to WSL2 and/or HyperV reserving a pretty big range of ports or something like that.
Author
Owner

@Niko1221 commented on GitHub (Oct 6, 2026):

A reserved port block (WSL2 / Hyper-V) is one known cause on Windows, as you suggest: netsh int ipv4 show excludedportrange protocol=tcp lists the blocks, and a --port outside them (50000+ usually is) works. Server-side, setup's start error names that command only for the 'access denied' form of the failure; whether the 'already in use' wording can come from a reserved block too is being checked. If a port outside the listed ranges also fails, please post what netstat -ano | findstr :8080 shows.

<!-- gh-comment-id:6010911659 --> @Niko1221 commented on GitHub (Oct 6, 2026): A reserved port block (WSL2 / Hyper-V) is one known cause on Windows, as you suggest: `netsh int ipv4 show excludedportrange protocol=tcp` lists the blocks, and a --port outside them (50000+ usually is) works. Server-side, setup's start error names that command only for the 'access denied' form of the failure; whether the 'already in use' wording can come from a reserved block too is being checked. If a port outside the listed ranges also fails, please post what `netstat -ano | findstr :8080` shows.
Author
Owner

@Niko1221 commented on GitHub (Oct 13, 2026):

Thanks for the report. To keep the tracker current we are closing issues older than three days: 0.1.44 is out with a long list of fixes, and many older reports are covered by it or by 0.1.43.1.

If this still happens on 0.1.44, please leave a comment here with your engine log (and the version line it prints), and we will reopen it. A new issue that links this one works too.

<!-- gh-comment-id:6155963399 --> @Niko1221 commented on GitHub (Oct 13, 2026): Thanks for the report. To keep the tracker current we are closing issues older than three days: [0.1.44](https://github.com/Niko1221/Strata/releases/tag/v0.1.44) is out with a long list of fixes, and many older reports are covered by it or by 0.1.43.1. If this still happens on 0.1.44, please leave a comment here with your engine log (and the version line it prints), and we will reopen it. A new issue that links this one works too.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Niko1221/Strata#348
No description provided.