Socket.family
The Socket.family property gets the address family "ipv4" or "ipv6"
Example
--! luart-extensions import net local socket = net.Socket("google.com", 80) -- outputs "ipv4" print("socket.family = "..socket.family)