I have written a small webserver in Java and am trying to get it to run on port 80 in Mac OS X. I get a "java.net.BindException: Permission denied" error which must mean that the logged-in user does not have permission to open a port on 80...or anything below 1024 for that matter. Now my question is this:
1) Is is possible to change the user permissions on Mac OS X to allow this? If so, how are they changed?
2) If they cannot be changed, is running it from root the only way to get it to bind to 80?
Thanks,
David
Start Free Trial