Are we only able to use port 80?

Can we open a listener for other ports say 23 for a telnet session, or are we stuck with only using port 80 ?

http.onrequest() will handle incoming HTTP (and HTTPS) requests. There’s no scope for other protocols.