Function SocketAddress.allInterfaces

Provides the set of addresses to listen on all supported protocols on the machine for the given interfaces. localhost only listens on the loopback interface, whereas allInterfaces will listen on loopback as well as the others on the system (meaning it may be publicly exposed to the internet).

static SocketAddress[] allInterfaces(
  ushort port,
  scope return UserProvidedBuffer!(trial.arsd.core.SocketAddress) buffer = UserProvidedBuffer(null, 0, OnOutOfSpace.reallocate).this(null, OnOutOfSpace.reallocate)
);

static SocketAddress[] allInterfaces(
  scope const(char[]) serviceOrPort,
  scope return UserProvidedBuffer!(trial.arsd.core.SocketAddress) buffer = UserProvidedBuffer(null, 0, OnOutOfSpace.reallocate).this(null, OnOutOfSpace.reallocate)
);

If you provide a buffer, I recommend using one of length two, so SocketAddress[2], since this usually provides one address for ipv4 and one for ipv6.