java.net.SocketException

tip

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

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

  • Spring Boot running app on port 80
    via Stack Overflow by 5er
    ,
  • GitHub comment 20#189304638
    via GitHub by ringtail
    ,
  • GitHub comment 106#217665220
    via GitHub by dmoos777
    ,
  • SocketException - Hadoop Wiki
    via by Unknown author,
    • 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 org.jboss.netty.channel.socket.nio.NioServerBoss$RegisterTask.run(NioServerBoss.java:193) at org.jboss.netty.channel.socket.nio.AbstractNioSelector.processTaskQueue(AbstractNioSelector.java:391) at org.jboss.netty.channel.socket.nio.AbstractNioSelector.run(AbstractNioSelector.java:315) at org.jboss.netty.channel.socket.nio.NioServerBoss.run(NioServerBoss.java:42) at org.jboss.netty.util.ThreadRenamingRunnable.run(ThreadRenamingRunnable.java:108) at org.jboss.netty.util.internal.DeadLockProofWorker$1.run(DeadLockProofWorker.java:42) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at java.lang.Thread.run(Thread.java:745)

    Users with the same issue

    Dunmer
    2 times, last one,
    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,
    Handemelindo
    10 times, last one,
    Unknown visitor1 times, last one,
    5 more bugmates