Skip to main content
4 of 4
replaced http://apple.stackexchange.com/ with https://apple.stackexchange.com/

How do I run a java application that wants to bind to ports 80 and 443?

Okay, so I turn on my laptop, sign in to my regular user account and proceed to open/run a Java-based, HTTP-proxying application called burp via Terminal.app. It executes normally but refuses to bind with ports 80:http & 443:https. I assume the error is privilege related so I..

user@MacBook-Pro:~$login
login:root
Password:********

..successfuly log in as the root user and..

root@MacBook-Pro:~#open /Users/user/Downloads/burpsuite_free_v1.6.01.jar

..returns the following error:

LSOpenURLsWithRole() failed with error -10810 for the file
/Users/user/Downloads/burpsuite_free_v1.6.01.jar.`

However, I don't observe this error when signed in as a regular user; nor do I observe this error when signed in as root via OS X's graphical user interface.

I'm not sure why burp refuses bind to ports 80:http & 443:https. If it's merely an error due to (chown) ownership and (chmod) permissions; i would have thought having root access was supposed to transcend such limitations.

Based on this question and answer I can see what the LSOpenURLsWithRole() & error -10810 mean. I'm getting this error because the .jar file isn't a runnable application.

But how do I fix this and get this working on my machine?

voices
  • 2.2k
  • 5
  • 26
  • 43