show/hide this revision's text 2 Fixed title to match question. Minor formatting.

aborting Can I abort telnet connection with ctrl-c on windows when host/port doesn't existwhile it is still trying to connect?

Hello

At times I find myself telnetting from Windows XP to another server and that I state a wrong port number such as

c:\> telnet xxxxx.yy pp

After hitting enterEnter, I realize that I entered the wrong port number and would like to abort the telnet process with a ctrl-c, however, telnet doesn't seem to respond even to ctrl-c. So, I have to wait a few seconds until telnet returns with a

Connecting to xxxxx.yy... 
Could not open connection to the host, on port pp: Connect failed

It's rather annoying to wait for the error message, especially when I already know it will eventually come.

So, is there a way to immediatly immediately stop the telnet process.

Thanks / Rene?

show/hide this revision's text 1

aborting telnet connection with ctrl-c on windows when host/port doesn't exist

Hello

At times I find myself telnetting from Windows XP to another server and that I state a wrong port number such as

c:\> telnet xxxxx.yy pp

After hitting enter, I realize that I entered the wrong port number and would like to abort the telnet process with a ctrl-c, however, telnet doesn't seem to respond even to ctrl-c. So, I have to wait a few seconds until telnet returns with a

Connecting to xxxxx.yy... Could not open connection to the host, on port pp: Connect failed

It's rather annoying to wait for the error message, especially when I already know it will eventually come.

So, is there a way to immediatly stop the telnet process.

Thanks / Rene