Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 368061 - Unable to bind Orion server to specific IP address
Summary: Unable to bind Orion server to specific IP address
Status: RESOLVED FIXED
Alias: None
Product: Orion
Classification: ECD
Component: Server (show other bugs)
Version: 0.4   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: 0.4 M2   Edit
Assignee: John Arthorne CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-01-06 16:35 EST by Alex Boone CLA
Modified: 2012-01-17 15:34 EST (History)
0 users

See Also:


Attachments
patch - adding support for jetty https?.host property keys (2.10 KB, patch)
2012-01-17 13:48 EST, Alex Boone CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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.