Skip to content

Agent Server port conflict issue #1141

@ulivz

Description

@ulivz

Version
latest

Issue Type

  • Agent TARS CLI (@agent-tars/server)

Model Provider

  • Other (N/A)

Problem Description

  • Expected: Should be able to run multiple Agent instances simultaneously
  • Actual: Second instance fails with port conflict error

Error Logs

Error: listen EADDRINUSE: address already in use :::8889
    at Server.setupListenHandle [as _listen2] (node:net:1939:16)
    at listenInCluster (node:net:1996:12)
    at Server.listen (node:net:2101:7)
    at /Users/chenhaoli/workspace/code/UI-TARS-desktop-5/multimodal/tarko/agent-server/dist/index.js:18313:33
    at new Promise (<anonymous>)
    at AgentServer.start (/Users/chenhaoli/workspace/code/UI-TARS-desktop-5/multimodal/tarko/agent-server/dist/index.js:18312:24)
    at async startInteractiveWebUI (/Users/chenhaoli/workspace/code/UI-TARS-desktop-5/multimodal/tarko/agent-cli/dist/index.js:8861:32)
    at async CAC.<anonymous> (/Users/chenhaoli/workspace/code/UI-TARS-desktop-5/multimodal/tarko/agent-cli/dist/index.js:9780:25)

All related files set default port to 8888:

  • multimodal/tarko/agent-cli/src/config/builder.ts
  • multimodal/tarko/agent-cli/src/core/commands/start.ts
  • multimodal/tarko/agent-cli/src/core/commands/serve.ts

Need support for automatic port allocation or dynamic port configuration.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions