Search code examples
javascripttelnet

Communicate over Telnet with Javascript?


Need to make a web-based GUI for a machine that can only be reached with Telnet, is it possible to communicate with it in Javascript?


Solution

  • JavaScript has no native IO features at all. It depends on the host environment to provide anything like that.

    Node.js, for example, has several telnet modules available for it, while web browsers allow JS to make only extremely limited types of network connections (HTTP and Web Sockets).