I implemented the preload option as described in the link from stackoverflow you suggested. Some notes for others who might want to use this: After server management installed /usr/local/lib64/bind.so, I am now starting the Handle server with BIND_ADDR="xxx.xxx.xxx.xxx" LD_PRELOAD=/usr/local/lib64/bind.so /path/to/handle/handle-9.3.0/bin/hdl-server /path/to/server/config (where xxx.xxx.xxx.xxx is the IP address I needed to use for outgoing connections) Because this does not work for IPv6 and not for UDP, I changed the following: In config.dct in the server configuration directory: added "no_udp_resolution" = "yes" In handle-9.3.0/bin/hdl: added -Djava.net.preferIPv4Stack=true to the server startup command (line 42) to prevent java from using IPv4 mapped IPv6 addresses. In order to not be dependent on either making changes to the networking stack or using this bind.so trick, it think it would be nice if there would be an option to configure the IP address of outgoing connections in config.dct in some future
version of the Handle server, maybe use the addresses that are configured with bind_address in config.dct as default? With restrictions on outgoing traffic becoming more common due to tightening security policies I think this might get useful for others too. Thanks, Jasper From: Robert Tupelo-Schneck <schneck@cnri.reston.va.us>
Unfortunately, there is no existing handle software configuration to set the local IP address used for outgoing connections. You can change the configuration of your OS / network stack in order to make .61 the default choice for outgoing connections instead of .58. I came across this technique which might possibly be useful to you: https://stackoverflow.com/questions/33961459/java-set-local-ip-address-without-changing-code Best, Robert On Fri, Sep 30, 2022 at 3:36 AM Jasper Bedaux <J.Bedaux@uva.nl> wrote:
|
_______________________________________________ Handle-Info mailing list Handle-Info@cnri.reston.va.us http://www.handle.net/mailman/listinfo/handle-info