tinkerpop/rexster — Issue #198: Allow rexster to support localhost-only requests
Author: pmelby
Created: 2012-01-18 15:13:29+00:00
State: open

T think this would be possibly by having rexster.xml include the binding ip address

something like this:
0.0.0.0

would allow you to bind to 127.0.0.1:

127.0.0.1

and therefore be able to set rexster to only listen to connections to localhost.

Rexster currently binds to 0.0.0.0: (line 185 in WebServer.java)

final NetworkListener listener = new NetworkListener("grizzly", "0.0.0.0", rexsterServerPort);

I'm honestly not really sure how grizzly/glassfish handles this, but the 0.0.0.0 vs 127.0.0.1 is fairly typical. But looking at this stackoverflow question, it looks like it might work differently?
http://stackoverflow.com/questions/6050407/grizzly-jersey-listening-only-on-localhost