I am trying to run a Spring application on Ubuntu, but it always says port 443 is already used. After running commands to check for processes on that port nothing came up, even after killing the task under port 443 the same error message came up. I did try to allow the port in the firewall as well. This error doesnt occur on Windows
It's possible that the port is being used by a service that isn't listed by the commands you used to check. You can try using the command
sudo netstat -tulpn | grep 443
to list all processes listening on port 443.
If you still can't find the process, it's possible that the port is being used by a kernel module or a hidden process. You can try running the command
sudo lsof -i :443
to find any processes using that port, including processes with hidden names.
If you're still having trouble, you might want to try changing the port that your Spring application listens on. You can do this by editing the
server.port
property in your application.properties file. For example, you could set
server.port=8443
to listen on port 8443 instead of port 443.
Let me know if you have any further questions!