Telnet with Python

Place for questions and answers for all newcomers and new coders. This is a free for all forum, no question is too stupid and to noob.
Post Reply
User avatar
mattykins
Posts: 203
Joined: Sun Jan 15, 2012 10:15 pm

Telnet with Python

Post 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.
User avatar
Jackolantern
Posts: 10891
Joined: Wed Jul 01, 2009 11:00 pm

Re: Telnet with Python

Post 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 :)
The indelible lord of tl;dr
User avatar
mattykins
Posts: 203
Joined: Sun Jan 15, 2012 10:15 pm

Re: Telnet with Python

Post 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 :)
User avatar
Jackolantern
Posts: 10891
Joined: Wed Jul 01, 2009 11:00 pm

Re: Telnet with Python

Post 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.
The indelible lord of tl;dr
Post Reply

Return to “Beginner Help and Support”