🍮 PudimServer Docs

Module: PudimServer.ServerChecks

Helper checks for server runtime conditions.

ServerChecks.is_Port_Open(address, port)

Checks whether a TCP port is open on the provided address and returns boolean, string.

Inputs: address (string), port (number).

Output: boolean (is open?) and string with reason/status.

local ServerChecks = require("PudimServer.ServerChecks")
local ok, reason = ServerChecks.is_Port_Open("127.0.0.1", 8080)