PlayerSession.address

Gets the player's remote address. it's usually an ipv4, ipv6 or an ipv4-mapped ipv6.

class PlayerSession
final shared nothrow @property @trusted @nogc
Address
address
()

Examples

if(session.address.addressFamily == AddressFamily.INET6) {
   log(session, " is connected through IPv6");
}

Meta