db-derby-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Oskar Zinger <ozin...@us.ibm.com>
Subject Derby Network Server - Questions about -h parameter
Date Tue, 28 Aug 2012 15:56:33 GMT


Hello Derby Community,

I have a question about Derby Network Server start and specifically about
-h option / parameter.

NetworkServerControl(InetAddress address, int portNumber)
This constructor creates an instance that listens on the specified
portNumber on the specified address. The InetAddress will be passed to
ServerSocket. NULL is an invalid address value. The following examples show
how you might allow Network Server to accept connections from other hosts:

//accepts connections from other hosts on an IPv4 system
NetworkServerControl serverControl =
  new NetworkServerControl(InetAddress.getByName("0.0.0.0"),1527);

//accepts connections from other hosts on an IPv6 system
NetworkServerControl serverControl =
  new NetworkServerControl(InetAddress.getByName("::"),1527);

If I use "::" for IPv6 system, will the network server accept connections
coming from IPv4 network, and vice versa?

Thanks,
Oskar

------------------------------------------------------------------
Oskar Zinger
Product Architect - IBM Tivoli Netcool/Impact
ozinger@us.ibm.com
Mime
View raw message