generally, use “netstat -lpn | grep 8080” (or whatever port number) to find out what process is already listening on that port. This kind of thing happens all the time.
[deleted]
Submitted 2 days ago by jobbies@lemmy.zip to selfhosted@lemmy.world
Comments
solrize@lemmy.ml 2 days ago
kumi@feddit.online 2 days ago
FWIW, netstat is considered legacy and deprecated. The in-vogue way to do the same thing is
ss -lpn | grep 8080.netstat like ifconfig still works and is shipped in the
net-toolspackage if you like it but if you’re learning it’s better to build a habit withssandipright away.https://arturogl.com/2023/10/18/linux-new-tools-replacing-netstat/
irmadlad@lemmy.world 2 days ago
“netstat -lpn | grep 8080
That’s a bit cleaner than
sudo lsof -i :8080. It always amazes me tho, how many different commands/ways there are in Linux to get to the same spot.
starshipwinepineapple@programming.dev 2 days ago
8080 is a common default port number so make sure to always check those when deploying something new
frongt@lemmy.zip 2 days ago
Is it perhaps because the address is already in use?
just_another_person@lemmy.world 2 days ago
Just change the port Headscale is running on.
irmadlad@lemmy.world 2 days ago
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
jobbies@lemmy.zip 2 days ago
irmadlad@lemmy.world 2 days ago
No worries mate.