java.net.SocketException

Permission denied

Samebug tips1

The solution is to run as root using sudo or to set different port in "application.properties" file, e.g. server.port=${port:8181}

Don't give up yet. Our experts can help. Paste your full stack trace to get a solution.

Solutions on the web606

  • Permission denied
  • Permission denied
  • Permission denied
  • Stack trace

    • 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.netty.channel.socket.nio.NioServerSocketChannel.doBind(NioServerSocketChannel.java:125) at io.netty.channel.AbstractChannel$AbstractUnsafe.bind(AbstractChannel.java:522) at io.netty.channel.DefaultChannelPipeline$HeadContext.bind(DefaultChannelPipeline.java:1196) at io.netty.channel.ChannelHandlerInvokerUtil.invokeBindNow(ChannelHandlerInvokerUtil.java:108) at io.netty.channel.DefaultChannelHandlerInvoker.invokeBind(DefaultChannelHandlerInvoker.java:214) at io.netty.channel.AbstractChannelHandlerContext.bind(AbstractChannelHandlerContext.java:208) at io.netty.channel.DefaultChannelPipeline.bind(DefaultChannelPipeline.java:1003) at io.netty.channel.AbstractChannel.bind(AbstractChannel.java:216) at io.netty.bootstrap.AbstractBootstrap$2.run(AbstractBootstrap.java:357) at io.netty.util.concurrent.SingleThreadEventExecutor.runAllTasks(SingleThreadEventExecutor.java:322) at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:356) at io.netty.util.concurrent.SingleThreadEventExecutor$4.run(SingleThreadEventExecutor.java:703) at io.netty.util.concurrent.DefaultThreadFactory$DefaultRunnableDecorator.run(DefaultThreadFactory.java:137) at java.lang.Thread.run(Thread.java:745)

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    2 times, 3 months ago
    Unknown user
    Once, 9 months ago
    Unknown user
    Once, 1 year ago
    10 times, 7 months ago
    Unknown user
    Once, 1 year ago
    5 more bugmates