You’re not allowed to open sockets on ports below 1024 without root privileges. https://www.w3.org/Daemon/User/Installation/PrivilegedPorts.html
On Tue, Mar 6, 2018 at 6:02 PM, David Robison <[email protected]> wrote: > I am trying to bind to port 554 on my Linux box using mina and I’m getting > the following error: > > > > 2018-03-06 16:53:02,233 ERROR [stderr] (ServerService Thread Pool -- 109) > java.net.SocketException: Operation not permitted > > 2018-03-06 16:53:02,234 ERROR [stderr] (ServerService Thread Pool -- > 109) at sun.nio.ch.Net.bind0(Native Method) > > 2018-03-06 16:53:02,234 ERROR [stderr] (ServerService Thread Pool -- > 109) at sun.nio.ch.Net.bind(Net.java:433) > > 2018-03-06 16:53:02,234 ERROR [stderr] (ServerService Thread Pool -- > 109) at sun.nio.ch.Net.bind(Net.java:425) > > 2018-03-06 16:53:02,234 ERROR [stderr] (ServerService Thread Pool -- > 109) at sun.nio.ch.ServerSocketChannelImpl.bind( > ServerSocketChannelImpl.java:223) > > 2018-03-06 16:53:02,234 ERROR [stderr] (ServerService Thread Pool -- > 109) at sun.nio.ch.ServerSocketAdaptor.bind( > ServerSocketAdaptor.java:74) > > 2018-03-06 16:53:02,234 ERROR [stderr] (ServerService Thread Pool -- > 109) at org.apache.mina.transport.socket.nio.NioSocketAcceptor. > open(NioSocketAcceptor.java:198) > > 2018-03-06 16:53:02,234 ERROR [stderr] (ServerService Thread Pool -- > 109) at org.apache.mina.transport.socket.nio.NioSocketAcceptor. > open(NioSocketAcceptor.java:51) > > 2018-03-06 16:53:02,234 ERROR [stderr] (ServerService Thread Pool -- > 109) at org.apache.mina.core.polling.AbstractPollingIoAcceptor. > registerHandles(AbstractPollingIoAcceptor.java:547) > > 2018-03-06 16:53:02,234 ERROR [stderr] (ServerService Thread Pool -- > 109) at org.apache.mina.core.polling.AbstractPollingIoAcceptor. > access$400(AbstractPollingIoAcceptor.java:68) > > 2018-03-06 16:53:02,235 ERROR [stderr] (ServerService Thread Pool -- > 109) at org.apache.mina.core.polling.AbstractPollingIoAcceptor$ > Acceptor.run(AbstractPollingIoAcceptor.java:422) > > 2018-03-06 16:53:02,235 ERROR [stderr] (ServerService Thread Pool -- > 109) at org.apache.mina.util.NamePreservingRunnable.run( > NamePreservingRunnable.java:64) > > 2018-03-06 16:53:02,235 ERROR [stderr] (ServerService Thread Pool -- > 109) at java.util.concurrent.ThreadPoolExecutor.runWorker( > ThreadPoolExecutor.java:1149) > > 2018-03-06 16:53:02,235 ERROR [stderr] (ServerService Thread Pool -- > 109) at java.util.concurrent.ThreadPoolExecutor$Worker.run( > ThreadPoolExecutor.java:624) > > 2018-03-06 16:53:02,235 ERROR [stderr] (ServerService Thread Pool -- > 109) at java.lang.Thread.run(Thread.java:748) > > > > Any ideas what operation is not permitted and how to debug this further? > Thanks, David > > > > *David R Robison* > > *Senior Systems Engineer* > > O. +1 512 247 3700 <(512)%20247-3700> > > M. +1 757 286 0022 <(757)%20286-0022> > > [email protected] > > *www.psgglobal.net <http://www.psgglobal.net/>* > > [image: cid:[email protected]] > > [image: Prometheus Logo - Email Signature] > > *Prometheus Security Group Global, Inc.* > > 3019 Alvin Devane Boulevard > <https://maps.google.com/?q=3019+Alvin+Devane+Boulevard+%0D%0A+Building+4,+Suite+450&entry=gmail&source=g> > > Building 4, Suite 450 > <https://maps.google.com/?q=3019+Alvin+Devane+Boulevard+%0D%0A+Building+4,+Suite+450&entry=gmail&source=g> > > Austin, TX 78741 > > > > >
