Administrator Guide : Managing network connections : Communication protocols : TCP/IP protocol
  
TCP/IP protocol
solidDB® supports both TCP/IPv4 and TCP/IPv6 protocols. To use the TCP/IP protocol, you need to specify tcp as the protocol, specify the host computer (optional), and use a non-reserved port number.
There are differences in the use of the TCP/IPv4 and TCP/IPv6 protocols, depending on the platform.In Linux and UNIX environments, solidDB® can listen to both the TCP/IPv4 and TCP/IPv6 protocols automatically, based on the format of the IP address in the network name. If the network name does not specify an IP address, solidDB® tries to start listening on IPv6 (::0) first, if it is not possible, it tries again on IPv4 (0.0.0.0).
If you want solidDB® to listen to only one protocol type, you can specify the protocol explicitly with the -4 (IPv4) and -6 (IPv6) option in the network name.
In Windows environments, solidDB® listens to the IPv4 protocol by default.
To use the IPv6, you need to specify the IPv6 protocol using the option -6 in the network name.
Platform
IPv4 syntax
IPv6 syntax
Linux and
UNIX
Listen = tcp [-4] [-ihost_computer] port_number
Examples:
Listen = tcp 1315
Listen = tcp -i9.11.22.314 1315
Listen = tcp [-6] [-ihost_computer] port_number
Examples:
Listen = tcp 1315
Listen = tcp -ife80::9:1122::0314 1315
Windows
Listen = tcp [-4] [-ihost_computer] port_number
Examples:
Listen = tcp 1315
Listen = tcp -i9.11.22.314 1315
Listen = tcp -6 [-ihost_computer] port_number
Examples:
Listen = tcp -6 1315
Listen = tcp -6 -ife80::9:1122::0314 1315
Platform
IPv4 syntax
IPv6 syntax
Linux and
UNIX
Connect = tcp [-4] [host_computer] port_number
Examples:
Connect = tcp 1315
Connect = tcp 9.11.22.314 1315
Connect = tcpip -4 accounting_dept_server 1315
Connect = tcp [-6] [host_computer] port_number
Examples:
Connect = tcp 1315
Connect = tcp fe80::9:1122::0314 1315
Connect = tcpip accounting_dept_server 1315
Windows
Connect = tcp [-4] [host_computer] port_number
Examples:
Connect = tcp 1315
Connect = tcp 9.11.22.314 1315
Connect = tcpip accounting_dept_server 1315
Connect = tcp -6 [host_computer] port_number
Examples:
Connect = tcp -6 1315
Connect = tcp -6 fe80::9:1122::0314 1315
Connect = tcpip -6 accounting_dept_server 1315
where
host_computer = ip_address|host_name
If the server is running in the same computer with the client program, host_computer does not need to be specified.
If host_computer is specified as a host_name, the host_name must be listed in the/etc/hosts file or it must be recognized by the DNS (Domain Name Server).
If a client attempts to open a TCP/IP connection without specifying a hostname, it uses the local loopback interface address, 127.0.0.1 (IPv4) or ::1 (IPv6) as the default IP address.
port_number must be an unreserved port; reserved port numbers are listed in the /etc/services file of your system. Select a free number greater than 1024 – smaller numbers are typically reserved for the operating system.
-i ip_address or -i host_name means that the solidDB® listens only to the specified IP address or host name. This is useful in multihomed systems that support many TCP/IP interfaces or have multiple IP addresses.
See also
Communication protocols