When using H2 Auto_server mode, is it possible to associate a socket with a local host?

the documentation implies that the connection is always accessible remotely, but since I use it on my laptop and change networks, sometimes clients do not know how to connect, as they try to use an IP address that is no longer valid.

So the question is: is there a way to get H2 to only listen on the local host for auto_server = true?

+4
source share
1 answer

Yes, you can set the server binding address using the system property "h2.bindAddress".

+7
source

Source: https://habr.com/ru/post/1393619/


All Articles