java.lang.RuntimeException: java.net.SocketException: Permission denied

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Samebug tips

,
via Stack Overflow by Daniil Shevelev

The solution is to run as root using sudo or to set different port in application.properties file, e.g.

server.port=${port:8181}

Solutions on the web

via GitHub by ymchandra
, 1 year ago
java.net.SocketException: Permission denied
via Stack Overflow by Nanxi Li
, 8 months ago
java.net.SocketException: Permission denied
java.lang.RuntimeException: java.net.SocketException: Permission denied
at sun.nio.ch.Net.bind0(Native Method)
at sun.nio.ch.Net.bind(Net.java:433)
at sun.nio.ch.Net.bind(Net.java:425)
at sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:223)
at sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:74)
at io.undertow.Undertow.start(Undertow.java:142)
at org.restheart.Bootstrapper.startCoreSystem(Bootstrapper.java:570)
at org.restheart.Bootstrapper.startServer(Bootstrapper.java:360)
at org.restheart.Bootstrapper.main(Bootstrapper.java:137)

Users with the same issue

Samebug visitor profile picture
Unknown user
Once, 2 months ago
2 times, 2 months ago
2 times, 7 months ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
7 more bugmates

Know the solutions? Share your knowledge to help other developers to debug faster.