Page 1 of 5

Telnet broken?

Posted: Sat May 31, 2003 11:59 pm
by pawnw
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.

Posted: Sun Jun 01, 2003 2:32 am
by vzmule
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.

Hmm

Posted: Mon Jun 02, 2003 2:15 pm
by pawnw
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.

Posted: Mon Jun 02, 2003 2:38 pm
by Mckorr
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.

Posted: Mon Jun 02, 2003 3:13 pm
by kaz
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.

hmm again :)

Posted: Mon Jun 02, 2003 3:40 pm
by pawnw
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.

Posted: Mon Jun 02, 2003 4:19 pm
by dont_know_at_all
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

Posted: Mon Jun 02, 2003 7:42 pm
by L124RD
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* )

Posted: Thu Jun 12, 2003 8:19 pm
by zedisdeadbaby
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?

Re: Telnet broken?

Posted: Thu Sep 25, 2025 11:22 am
by xyilla

Re: Telnet broken?

Posted: Thu Sep 25, 2025 11:23 am
by xyilla

Re: Telnet broken?

Posted: Thu Sep 25, 2025 11:24 am
by xyilla

Re: Telnet broken?

Posted: Thu Sep 25, 2025 11:25 am
by xyilla

Re: Telnet broken?

Posted: Thu Sep 25, 2025 11:27 am
by xyilla

Re: Telnet broken?

Posted: Thu Sep 25, 2025 11:28 am
by xyilla