Bind ip to localhost when not on OpenShift.

I've changed the binding of the server to use localhost (127.0.0.1) when not on OpenShift.