Skip to content

Failed to start WebSocket server: Port <PORT NUMBER> is already in use #141

Description

@firdiar

Following this closed issue : #28

actually issue still happening on my end sometimes maybe at 50:50 chance

[MCP Unity] Failed to start WebSocket server: Port 8030 is already in use. Only one usage of each socket address (protocol/network address/port) is normally permitted.

The work around i do is usually changing the Port to another number or restarting unity

im checking the task process running at that port when it failed to start and this is the result
Image

after i restart unity the task is disapear, and i can start normally. and this is how it's lookslike on fresh start
Image

i think, somehow the process got stuck while recompile happens forcing the MCP server to restart but the old server is failed to stop completely.

should we have an option to ForceRestart the server?

PS: Let me know if you need any assistance to test it

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions