Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 368061

Summary: Unable to bind Orion server to specific IP address
Product: [ECD] Orion Reporter: Alex Boone <aboone>
Component: ServerAssignee: John Arthorne <john.arthorne>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: 0.4   
Target Milestone: 0.4 M2   
Hardware: PC   
OS: Linux   
Whiteboard:
Attachments:
Description Flags
patch - adding support for jetty https?.host property keys none

Description Alex Boone CLA 2012-01-06 16:35:52 EST
I am trying to run Orion with the embedded jetty server binding to a specific port. I have added the following line to my orion.ini file (A.B.C.D replaced with an actual, reachable IP address, eg 127.0.5.2):

-Dorg.eclipse.equinox.http.jetty.http.host=A.B.C.D

Regardless of this property being set, it seems jetty always binds to 0.0.0.0, meaning the application is available over all network interfaces.

I am able to change the bound port readily via another system property set in the same file (eg: -Dorg.eclipse.equinox.http.jetty.http.port=8081).
Comment 1 Alex Boone CLA 2012-01-17 13:48:14 EST
Created attachment 209640 [details]
patch - adding support for jetty https?.host property keys
Comment 2 Alex Boone CLA 2012-01-17 13:49:43 EST
I did some more research and found the ConfiguratorActivator does not actually support the property keys noted in my original bug report.  Please see the attached patch which appears to work to configure Jetty to bind to just a specific IP.
Comment 3 John Arthorne CLA 2012-01-17 15:25:02 EST
Thanks Alex! I have released your patch:

http://git.eclipse.org/c/orion/org.eclipse.orion.server.git/commit/?id=9e7c0c625a1db351640448f5c40f94da4d998154

Out of curiosity, I didn't recognize the patch format you used. What git tool produced that? Eclipse didn't seem to know how to apply it so I was curious if this is some well known Git patch format that EGit should be supporting.
Comment 4 Alex Boone CLA 2012-01-17 15:34:44 EST
John - I used the built-in "git format-patch" command to create the attached patch.  It's intended for sharing patches via email I believe. Thanks for the quick turnaround, this is great news for us.