app.listen accepts a port number, a port with hostname, or an options object. TLS is configured through @orveth/https, not app.listen.
listen.ts
await app.listen(3000);
await app.listen(3000, "127.0.0.1");
await app.listen({ port: 3000 });
await app.listen({ port: 3000, hostname: "127.0.0.1" });Invalid ports throw an error identified by ORVETH_LISTEN_INVALID_PORT.