For the latest stable version, please use Emilua API 0.10!

ip.tostring

Synopsis

local ip = require "ip"
ip.tostring(addr: ip.address[, port: integer]) -> string

Description

Convert a traditional network endpoint (IP address + unsigned 16-bit integer) to its string representation. If port is nil, then perform the equivalent of tostring(addr).