Languages

Spring Boot 2 - Caused by: java.lang.Exception: Socket bind failed: [13] [Permission denied]

3 points
Asked by:
Kourtney-White
635

Why on Windows my Spring Boot 2 application starts without any problems, and on Linux not?

Java exception:

 

1 answer
3 points
Answered by:
Creg
9600

To start a server using port < 1024 under Unix/Linux you need to have special privileges.

Solutions

  1. during development and testing use port number >= 1024,
  2. on production use port number < 1024, using user that has special privileges.
0 commentsAdd comment
Donate to Dirask
Our content is created by volunteers - like Wikipedia. If you think, the things we do are good, donate us. Thanks!
Join to our subscribers to be up to date with content, news and offers.
Native Advertising
🚀
Get your tech brand or product in front of software developers.
For more information Contact us
Dirask - we help you to
solve coding problems.
Ask question.

❤️💻 🙂

Join