Advertisement

03.04.2005 at 12:26PM PST, ID: 21338334
[x]
Attachment Details

Mac OS X  - Port 80 Permissions

Asked by lomidien in General Macintosh Programming

Tags: , , , ,

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,
DavidStart Free Trial
[+][-]03.05.2005 at 09:43AM PST, ID: 13466487

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zone: General Macintosh Programming
Tags: port, 80, mac, os, x
Sign Up Now!
Solution Provided By: clausbroch
Participating Experts: 1
Solution Grade: A
 
 
 
Loading Advertisement...
20080716-EE-VQP-32