Function SocketAddress.ip6
Returns a single address object for the given protocol and parameters.
static SocketAddress ip6(
scope const(char[]) address,
ushort port,
bool forListening = false
);
static SocketAddress ip6(
ushort port
);
You probably should generally prefer [get], [localhost], or [allInterfaces] to have more flexible code.