Socket.ip readonly



The Socket.ip property gets the IP address the socket is bound to as a string

Example

--! luart-extensions import net -- create and connect a client TCP socket to the host "google.com" local socket = net.Socket("google.com", 80) -- outputs socket.ip print("socket.ip = "..socket.ip)