We know in Linux platform only root user can bind the privileged ports (port numbers 1-1024). If I try to bind as normal user then we will get an exception. It will just say can't bind port specified.
Is there any Java API to check whether the user who invoked the application has permission to bind the privileged port before trying to bind the port?.
There are chances where the port may be used by some other application. That is different case (port is already in use).