Page 1 of 1

Telnet with Python

Posted: Thu Jun 14, 2012 4:40 am
by mattykins
Does anyone have any experiance setting up a telnet server with python? I've seen plenty of tutorials for telnet clients but not a server?
I ask because I want to do a text based MMO and telnet seems like the easiest way for players to connect, as they won't have to download a client of any sort.

Re: Telnet with Python

Posted: Thu Jun 14, 2012 5:19 am
by Jackolantern
Keep in mind that the default Windows Telnet client is so bad that it is basically unusable for games, so they will need to download a client of some kind; if nothing else, at least Putty.

As far as Telnet goes, it is basically just a raw TCP/IP connection transferring ASCII characters and other data. That is why there aren't a ton of Telnet libraries out there, since they are rarely needed to function, unless they are designed for some of the more advanced functionality, such as sending files perhaps. More info on Telnet can be found on the wikipedia page :)

Re: Telnet with Python

Posted: Thu Jun 14, 2012 7:43 pm
by mattykins
I was actually doing this as sort of a niche game for me and some buddies. All of which are very computer literate and would be on linux or have putty installed haha :)

Thanks for the info :)

EDIT: Wow the solution was simple, i just needed a socket listening on port 23. *facepalm* haha thanks guys :)

Re: Telnet with Python

Posted: Thu Jun 14, 2012 8:12 pm
by Jackolantern
Yeah, Telnet is quite simple. Most technologies from the early 70's tend to not be that complex lol The entire idea of "libraries" was just starting to gain traction back then, to give some perspective on how simple and archaic those days were.