failed to bind to TCP address: listen tcp 0.0.0.0:4000: bind: address already in use #363

Closed
opened 2025-12-29 01:27:40 +01:00 by adam · 4 comments
Owner

Originally created by @cnmeeia on GitHub (Nov 3, 2022).

2022-11-02T21:51:57-04:00 INF Setting up a DERPMap update worker frequency=86400000
2022-11-02T21:51:57-04:00 FTL ../home/runner/work/headscale/headscale/cmd/headscale/cli/server.go:26 > Error starting server error="failed to bind to TCP address: listen tcp 0.0.0.0:4000: bind: address already in use"

Originally created by @cnmeeia on GitHub (Nov 3, 2022). 2022-11-02T21:51:57-04:00 INF Setting up a DERPMap update worker frequency=86400000 2022-11-02T21:51:57-04:00 FTL ../home/runner/work/headscale/headscale/cmd/headscale/cli/server.go:26 > Error starting server error="failed to bind to TCP address: listen tcp 0.0.0.0:4000: bind: address already in use"
adam added the bug label 2025-12-29 01:27:40 +01:00
adam closed this issue 2025-12-29 01:27:40 +01:00
Author
Owner

@juanfont commented on GitHub (Nov 14, 2022):

@cnmeeia are you sure you are not running another instance?

@juanfont commented on GitHub (Nov 14, 2022): @cnmeeia are you sure you are not running another instance?
Author
Owner

@kradalby commented on GitHub (Nov 18, 2022):

What is the output of lsof -i :4000 when headscale is not running?

@kradalby commented on GitHub (Nov 18, 2022): What is the output of `lsof -i :4000` when `headscale` is _not_ running?
Author
Owner

@cnmeeia commented on GitHub (Nov 18, 2022):

@cnmeeia are you sure you are not running another instance?

Thanks you

@cnmeeia commented on GitHub (Nov 18, 2022): > @cnmeeia are you sure you are not running another instance? Thanks you
Author
Owner

@cnmeeia commented on GitHub (Nov 18, 2022):

What is the output of lsof -i :4000 when headscale is not running?

Thanks

@cnmeeia commented on GitHub (Nov 18, 2022): > What is the output of `lsof -i :4000` when `headscale` is _not_ running? Thanks
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/headscale#363