I am trying to run my Scala code using SBT but I get the error below. This happens both with SBT using the command line and with IntelliJ Idea.
[error] (run-main) org.jboss.netty.channel.ChannelException: Failed to bind to: /127.0.0.1:80 org.jboss.netty.channel.ChannelException: Failed to bind to: /127.0.0.1:80 .... .... Caused by: java.net.SocketException: Permission denied
What should I configure to allow access to the port. This happens both when trying to run on the local Mac, and on a remote Ubuntu server.
Running sbt with "sudo sbt" fixes the problem, but it is not a solution. Where can I set the permission to allow my Scala application to access port 80.
source share