- Blind mode tutorial
lichess.org
Donate

telnet from Ubuntu linux Lichess: which port should I use ?

which port should I use to play Lichcess.org with telnet under Ubuntu Linux ?

which port should I use to play Lichcess.org with telnet under Ubuntu Linux ?
<Comment deleted by user>

You can't do that: telnet is a different protocol (telnet, like the name of the utility implementing it) while Lichess, like any web server, uses HTTP (Hyper-Text Transport Protocol) or its respective counterpart HTTPS (essentially the same as HTTP but using SSL - secure socket layer - to encrypt the data stream).

Both these protocols are using TCP for transport, but that is like English and French use the same alphabet - that still doesn't make them the same language.

You can't do that: telnet is a different protocol (telnet, like the name of the utility implementing it) while Lichess, like any web server, uses HTTP (Hyper-Text Transport Protocol) or its respective counterpart HTTPS (essentially the same as HTTP but using SSL - secure socket layer - to encrypt the data stream). Both these protocols are using TCP for transport, but that is like English and French use the same alphabet - that still doesn't make them the same language.

telnet lichess.org 80 just hangs on. I would like to see my favorite old terminal board. Is that possible ?

telnet lichess.org 80 just hangs on. I would like to see my favorite old terminal board. Is that possible ?
<Comment deleted by user>

3rd port on the left.

3rd port on the left.
<Comment deleted by user>

@pkill said in #5:

you'll have to send HTTP GET and POST requests to get a response from a web server over telnet.

This will not work, because the "GET" and "POST" requests are part of the HTTP protocol, while the telnet command will only speak telnet protocol (setting aside for a moment that Lichess works with HTTPS, which adds the encryption problem on top of that). Even if you have your telnet client use the correct port (80 or 443), which is possible - the daemon listening on this port (Apache, presumably) will not understand you (and neither will your telnet-client understand what Apache sends).

What you could do is use the SLIP (serial line IP) and put it on top of TCP (this can be done with a few lines of C-code, my suggestion is to use "TCP/IP-Illustrated" by W.Richard Stevens as a reference, volume 3 has a complete IP-Stack in commented source code), then rewrite it to implement your own HTTP-protocol-driver. SLIP is a good base because it is basically a "nothing-protocol" - it just escapes certain esacpe-sequences so that data sent will not modify the serial line settings.

Honestly: why not use a simple webbrowser, which has all this already done?

@pkill said in #5: > you'll have to send HTTP GET and POST requests to get a response from a web server over telnet. This will not work, because the "GET" and "POST" requests are part of the HTTP protocol, while the telnet command will only speak telnet protocol (setting aside for a moment that Lichess works with HTTPS, which adds the encryption problem on top of that). Even if you have your telnet client use the correct port (80 or 443), which is possible - the daemon listening on this port (Apache, presumably) will not understand you (and neither will your telnet-client understand what Apache sends). What you could do is use the SLIP (serial line IP) and put it on top of TCP (this can be done with a few lines of C-code, my suggestion is to use "TCP/IP-Illustrated" by W.Richard Stevens as a reference, volume 3 has a complete IP-Stack in commented source code), then rewrite it to implement your own HTTP-protocol-driver. SLIP is a good base because it is basically a "nothing-protocol" - it just escapes certain esacpe-sequences so that data sent will not modify the serial line settings. Honestly: why not use a simple webbrowser, which has all this already done?

So many hints but none is attainable form me :-(

Isn't there a simple and working solution ?

Moreover my telnet client on windows 8 has gone, moved to virus trezor.

So many hints but none is attainable form me :-( Isn't there a simple and working solution ? Moreover my `telnet` client on windows 8 has gone, moved to virus trezor.
<Comment deleted by user>

This topic has been archived and can no longer be replied to.