Trying to set Headscale up in a Debian VPS.
When I do
$ sudo headscale serve
I get the following error
failed to bind to TCP address: listen TCP 127.0.0.1:8080: bind: address already in use
Bit of a noob with crowdsec but I think its doing something that obstructs Headscale. If I stop crowdsec and do ‘headscale serve’ it seems to run without an issue.
I’m setting it up so that headscale listens on my domain using Caddy. This is the caddyfile:
sub.domain.com {
reverse_proxy localhost:8080
tls [email protected]
}
Any ideas?


I don’t run Headscale but it appears that there is a conflict.
Who is using port 8080:
sudo lsof -i :8080Have you tried either changing Crowdsec’s port or Headscale’s port?
Change Crowdsed’s port
Change Headscale port:
/etc/headscale/config.yamlheadscale: listen_addr: 127.0.0.1:8081sudo headscale serveThanks! Yep both using 8080. Didn’t occur to me to check that. Doh!
No worries mate.