IP commands
IP commands can be used in HTTP and TCP events.
IP:local_addr()
Return IP address class, which is the local address of the connection.
IP:remote_addr()
Return IP address class, which is the remote address of the connection.
IP:client_addr()
Return IP address class, which is the client IP address of the stream.
IP:server_addr()
Return IP address class, which is the server IP address of the stream. If server is not connected, return nil.
IP:version()
Return the IP version of the connection, either 4 or 6.