SocketAddress.ip4

Returns a single address object for the given protocol and parameters.

You probably should generally prefer get, localhost, or allInterfaces to have more flexible code.

  1. SocketAddress ip4(char[] address, ushort port, bool forListening)
    struct SocketAddress
    static
    ip4
    (
    scope const char[] address
    ,
    ushort port
    ,
    bool forListening = false
    )
  2. SocketAddress ip4(ushort port)

Meta