Disabling / Binding to an IP the Language Server Protocol (LSP) service

Hi,

The LSP service is listening on port 5007 for all interfaces (Linux).

I would like to know if it is possible to disable the Language Server Protocol (LSP) service or at least bind it to a specific IP (like 127.0.0.1 or ::1) ?

Thanks,
Roth

I don’t think there is an option to bind lsp to a specific interface, but of course it’s possible to set the port (if that will help).
It’s possible to stop lsp4j from karaf console by typing

bundle:stop org.eclipse.lsp4j

I don’t know if uninstalling the bundle will work, or if there will be any side effects.

Hi Udo,

Thanks for getting back to me.

I entered this:
bundle:stop org.eclipse.lsp4j.jsonrpc
bundle:stop org.eclipse.lsp4j
but it did not work (java is still listening on port 5007).
openhab> bundle:list | grep lsp
101 │ Resolved │ 80 │ 0.2.1.v20170706-0855 │ org.eclipse.lsp4j
102 │ Resolved │ 80 │ 0.2.1.v20170706-0855 │ org.eclipse.lsp4j.jsonrpc

I even went for this:
bundle:uninstall org.eclipse.lsp4j.jsonrpc
bundle:uninstall org.eclipse.lsp4j
But it’s still listening…

Any hint ?

Best,
Roth

OK, it worked after a restart.

Thanks!

Best,
Roth