Subj : Re: Getting the telnet port number To : Digital Man From : Ree Date : Fri Jan 28 2011 04:19 pm > Okay, server.socket is only defined for *static* services (e.g. ircd.js), > so that checks out. The original question was how to discover the *Telnet* > port, and server.socket.local_port would only do that if the script was > running in the context of the Telnet server, so I think the point is moot > and the sbbs.ini parsing is probably your best bet. OK, that makes sense. I see that's actually the method used in ftp-web-html.js (although to get the http port in that case). > I would use the > file_cfgname() method to get the correct sbbs.ini filename derivation > however, as there can be multiple sbbs*.ini files to choose from. OK, I've updated the script accordingly (using ftp-web-html.js as a reference), thanks for the heads up on that. Rick .