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 serverfault.com by Unknown author, 1 year ago
via Server Fault by mark
, 1 year ago
via GitHub by gitblit
, 2 years ago
via Google Groups by Sandra Warmbrunn, 7 months ago
via askubuntu.com by Unknown author, 2 years ago
java.net.SocketException: Permission denied
at sun.nio.ch.Net.bind(Native Method)
at sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:137)
at sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:77)
at org.simpleframework.transport.connect.Acceptor.bind(Acceptor.java:171)
at org.simpleframework.transport.connect.Acceptor.(Acceptor.java:88)
at org.simpleframework.transport.connect.Listener.(Listener.java:78)
at org.simpleframework.transport.connect.ListenerManager.listen(ListenerManager.java:90)
at org.simpleframework.transport.connect.ListenerManager.listen(ListenerManager.java:73)
at org.restlet.ext.simple.HttpServerHelper.start(HttpServerHelper.java:93)
at org.restlet.Server.start(Server.java:585)
at org.restlet.Component.startServers(Component.java:601)
at org.restlet.Component.start(Component.java:528)
at com.shunra.gl.Main.main(Unknown Source)

Users with the same issue

You are the first who have seen this exception.

Write tip

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