start . me .
Directory path . lua .

File : file-client.lua

local host, port = "arkenidar.com", 9999
local socket = require("socket")
local tcp = assert(socket.tcp())

tcp:connect(host, port)
--note the newline below
tcp:send(arg[1].."\n")

while true do
    local s, status, partial = tcp:receive()
    io.write(s or partial)
    if status == "closed" then break end
end
tcp:close()
print()