AGS_USE_IPV6

This variable enables the use of IPv6 addressing.

By default, this variable is set to 0 and IPv4 addressing is used instead. Set the variable to 1 to enable IPv6 addressing.

If your program is not using a configuration file, you can set AGS_USE_IPV6 within the runtime environment; if your program does use a configuration file, you can set the variable in either. In some cases, such as acurcl -start , the variable must be set in the configuration file, because a child process is spawned that does not inherit the environment of the parent.

For best results, unless otherwise necessary, use the same AGS_USE_IPV6 setting for all ACUCOBOL-GT programs or client/server environments.

It may be possible to mix IPv4 and IPv6 addressing between client and server, but controlling that behavior is beyond the scope of ACUCOBOL-GT. Refer to your system documentation for more information on the effects of mixing addressing versions.

In ACUCOBOL-GT, you specify an IPv6 address in the same way as you would an IPv4 address:

SERVER_IP 1111:2222:3333:4444:5555:6666:7777:8888

However, when using one of the Acu utilities (for example, AcuConnect), if you are specifying a port number, you need to use brackets around the actual IP address, as shown below. This is also applicable if you are specifying an address that contains any other additional notation, so as to remove the ambiguity of where the IP address starts and ends:

CODE_PREFIX *[1111:2222:3333:4444:5555:6666:7777:8888]:/usr/acu/code