The OpenD Programming Language

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).

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.

  1. SocketAddress[] allInterfaces(ushort port, UserProvidedBuffer!SocketAddress buffer)
    struct SocketAddress
    static
    allInterfaces
    (
    ushort port
    ,)
  2. SocketAddress[] allInterfaces(char[] serviceOrPort, UserProvidedBuffer!SocketAddress buffer)

Meta