Telnet broken?

A forum for feature requests/discussions and user submitted patches that improve MQ2

Moderator: MacroQuest Developers

pawnw
decaying skeleton
decaying skeleton
Posts: 4
Joined: Sat May 31, 2003 11:52 pm

Telnet broken?

Post by pawnw » Sat May 31, 2003 11:59 pm

Hi guys,

I am trying to get the telnet functionality of MQ to work. I have the latest CVS source, that was build with VS .NET.

When I edit the ini file, set the telnet enabled to 1, and set the port to some port number (4569 in this case) I get the following symptoms:

Case 1:
-=-=-=-
When I use the default telnet from windows xp shell, I get a black screen. No prompt,..no greeting. Typing a character results in a space being echo'd to the screen (in other words the cursor moves, but nothing is displayed).
If I type in the password and hit enter...I still get nothing.

I can disconnect using ^] and q...and I can reconnection just fine.

Case 2:
-=-=-=-
When using putty (latest stable release in downloads section), I get a slight delay...and then "host connection refused". After that, I can not telnet to that port ever again (including with the windows xp telnet). Even if I restart MQ... like it has held the port open..

If I then change the port number in the ini file, and restart MQ. I can once again connect to the new port number with windows xp telnet, but not with putty. Using putty gives me the same as above.


Case 3:
-=-=-=-
I set putty into "Raw" mode instead of "Telnet" mode. I then get a black screen similar to Windows xp telnet. However, I don't get any echos to the screen...in other words typing anything has no effect at all, cursor doesn't move or anything.


Anyone seen these symptoms? got any ideas? Anything else I can provide to track down the problem?


Thanks in advance for your help.

User avatar
vzmule
Contributing Member
Contributing Member
Posts: 378
Joined: Thu Mar 13, 2003 11:56 pm

Post by vzmule » Sun Jun 01, 2003 2:32 am

Sounds like you're doing things right. Only thing I can think of is Win XP settings. Make sure the xp firewall isn't running and try a number of different ports.

Also, are you trying to telnet from the same machine or another computer on your local network? If you are trying from another computer on your router/hub or something, check the LocalOnly setting in the ini file.

pawnw
decaying skeleton
decaying skeleton
Posts: 4
Joined: Sat May 31, 2003 11:52 pm

Hmm

Post by pawnw » Mon Jun 02, 2003 2:15 pm

Thanks for your reply :)

The windows xp firewall was enabled at first, and I could not telnet to the port AT ALL with it enabled... That sucked 15 minutes of my life from me... heh

I turned off the firewall in order to connect at all. I am trying to connect from a machine on the local network,.. I have set LocalOnly to 0 (which was the default).

I really want to get this working in order to implement my plans for world domination :) I guess I will be delving into the MQ code to see if I can fix it. If I do, I will post a patch.

Mckorr
Developer
Developer
Posts: 2326
Joined: Fri Oct 18, 2002 1:16 pm
Location: Texas

Post by Mckorr » Mon Jun 02, 2003 2:38 pm

If you are using XP you need to check your services to see if Telnet is even turned on. I believe it is disabled by default to prevent others from accessing your machine, and you have to go in and turn it on.
MQ2: Think of it as Evolution in action.

kaz
a ghoul
a ghoul
Posts: 103
Joined: Tue Jan 14, 2003 4:09 am

Post by kaz » Mon Jun 02, 2003 3:13 pm

Mckorr wrote:If you are using XP you need to check your services to see if Telnet is even turned on. I believe it is disabled by default to prevent others from accessing your machine, and you have to go in and turn it on.
You are referring to the telnet server service, which he does not want to turn on, ever!

Using telnet client is totally different and isnt affected, however the default windows telnet program sucks pretty bad and inserts extra cr/lf's that prob will not work correctly with mq telnet server.

First thing you will want to check is the TelnetLocal or LocalOnly or something like that in the macroquest.ini file, this is a flag that controls rather the telnet server will accept connections only from the localhost or from any host.

You'll want to try telneting into it from localhost, and other machines to verify you have this flag set the way you want it.

Second thing is use a client like putty or CRT but it already sounds like your doing that.

pawnw
decaying skeleton
decaying skeleton
Posts: 4
Joined: Sat May 31, 2003 11:52 pm

hmm again :)

Post by pawnw » Mon Jun 02, 2003 3:40 pm

I wasn't aware that you had to have the telnet server turned on for Windows XP for the telnet server in MQ to work. Doesn't make sense to me if it was setup that way,... I guess that from Kaz's post, you don't need it.

Using Putty is what makes the telnet server in MQ crash completely. In other words, you connect with putty, and it gives me "connection refused" and the telnet server in MQ is permanently down until you change the port number.

Is anyone else using the telnet server in the latest (post file split, post mouse code updates) CVS version of MQ??

(reason I am asking is that I just read over all the messages in the dev forums, and I noticed that at some point McKorr removed telnet in his personal build... That made me nervous :)

Can anyone confirm that telnet server works for them?

Thanks for help so far, much appreciated.

User avatar
dont_know_at_all
Developer
Developer
Posts: 5450
Joined: Sun Dec 01, 2002 4:15 am
Location: Florida, USA
Contact:

Post by dont_know_at_all » Mon Jun 02, 2003 4:19 pm

The telnet server works. I do not ever let macro output go into the chat buffer.

Code: Select all

[Telnet Server]
Enabled=1
LocalOnly=0
Port=6969
Welcome=Welcome to Macroquest
Password=mq
LocalOnly is pain -- I had to specify the IP address of my host and not localhost or 127.0.0.1. My machine is dual homed, btw.

I use the Cygwin telnet client: telnet localhost 6969

User avatar
L124RD
Site Admin
Site Admin
Posts: 1343
Joined: Fri Jun 14, 2002 12:15 am
Location: Cyberspace
Contact:

Post by L124RD » Mon Jun 02, 2003 7:42 pm

Salutations
puTTY Is an awesoem client, I use it for just about everything from ssh to (some) mud'ding to telnet to um... I ordered pizza with it once... (raw connection and faked a GET request because IE wasn't working... hehe... gotta love ordering online... pizza place soon removed it because search engine bots started ordering pizzas to places across the nation and such... *sigh* )

zedisdeadbaby
a ghoul
a ghoul
Posts: 83
Joined: Sun Nov 03, 2002 4:24 pm

Post by zedisdeadbaby » Thu Jun 12, 2003 8:19 pm

I got case1 when LocalOnly was =1. Turned that off and tried, now it connects and prompts for a password, but rejects after I type one character. I guess that's a telnet client specific thing?

xyilla
naggy
naggy
Posts: 33673
Joined: Sun Feb 23, 2025 5:36 am

Re: Telnet broken?

Post by xyilla » Thu Sep 25, 2025 11:22 am


xyilla
naggy
naggy
Posts: 33673
Joined: Sun Feb 23, 2025 5:36 am

Re: Telnet broken?

Post by xyilla » Thu Sep 25, 2025 11:23 am


xyilla
naggy
naggy
Posts: 33673
Joined: Sun Feb 23, 2025 5:36 am

Re: Telnet broken?

Post by xyilla » Thu Sep 25, 2025 11:24 am


xyilla
naggy
naggy
Posts: 33673
Joined: Sun Feb 23, 2025 5:36 am

Re: Telnet broken?

Post by xyilla » Thu Sep 25, 2025 11:25 am


xyilla
naggy
naggy
Posts: 33673
Joined: Sun Feb 23, 2025 5:36 am

Re: Telnet broken?

Post by xyilla » Thu Sep 25, 2025 11:27 am


xyilla
naggy
naggy
Posts: 33673
Joined: Sun Feb 23, 2025 5:36 am

Re: Telnet broken?

Post by xyilla » Thu Sep 25, 2025 11:28 am