skip to main content
Supported Features : Using IP Addresses
  

Try DataDirect Drivers Now

Using IP Addresses

The driver supports Internet Protocol (IP) addresses in the IPv4 and IPv6 formats.
If your network supports named servers, the server name specified in the data source can resolve to an IPv4 or IPv6 address.
In the following connection string example, the IP address for the Apache Cassandra server is specified in IPv6 format:
DRIVER=DataDirect Apache Cassandra Driver;
HostName=2001:DB8:0000:0000:8:800:200C:417A;PORT=9042;
KN=CASSANDRAKEYSPACE2;UID=JOHN;PWD=XYZZYYou;
SchemaMap=C:\Users\Default\AppData\Local\Progress\DataDirect\
Cassandra_Schema\MainServer.config
In addition to the normal IPv6 format, the driver supports IPv6 alternative formats for compressed and IPv4/IPv6 combination addresses. For example, the following connection string specifies the server using IPv6 format, but uses the compressed syntax for strings of zero bits:
DRIVER=DataDirect Apache Cassandra Driver;
HostName=2001:DB8:0:0:8:800:200C:417A;PORT=9042;
KN=CASSANDRAKEYSPACE2;UID=JOHN;PWD=XYZZYYou;
SchemaMap=C:\Users\Default\AppData\Local\Progress\DataDirect\
Cassandra_Schema\MainServer.config
Similarly, the following connection string specifies the server using a combination of IPv4 and IPv6:
DRIVER=DataDirect Apache Cassandra Driver;
HostName=2001:DB8:0:0:8:800:123.456.78.90;PORT=9042;
DB=CASSANDRAKEYSPACE2;UID=JOHN;PWD=XYZZYYou;
SchemaMap=C:\Users\Default\AppData\Local\Progress\DataDirect\
Cassandra_Schema\MainServer.config
For complete information about IPv6 formats, go to the following URL:
http://tools.ietf.org/html/rfc4291#section-2.2