Difference between revisions of "Telnet"

From NetHackWiki
Jump to navigation Jump to search
m (A bit more info, removed {{stub}}. This article is probably good enough.)
m (Windows telnet)
 
(6 intermediate revisions by 3 users not shown)
Line 1: Line 1:
'''Telnet''' is a command line based program used to connect to servers designed for interactive communication. Many operating systems include a telnet client by default including Windows, Mac, Linux and other UNIX variants. One may connect to [[nethack.alt.org]] to play NetHack online by typing
+
{{wikipedia|Telnet}}
 +
 
 +
'''Telnet''' is a command line program used to connect to [[public servers]]. Almost all operating systems include a telnet client by default. For example, you may connect to [[nethack.alt.org]] to play NetHack online by typing
  
 
  telnet nethack.alt.org
 
  telnet nethack.alt.org
  
Nethack.alt.org is not the only available server -- try this [[Websites#Public Servers|list]]. If Telnet is not for you, you may try [[PuTTY]] which is similar, yet more feature-rich.
+
It should be noted that no command line interface is quite the same as any other, and thus connecting through telnet to a server on different computers may cause strange results, especially if [[DECgraphics]] or [[IBMgraphics]] are used.
 +
 
  
It should be noted that no command line interface is quite the same as any other, and thus connecting through Telnet to [[nethack.alt.org]] on different computers may cause strange results. For example, after getting used to playing on Linux, one may decide to enable [[DECgraphics]]. Windows' cmd.exe does not seem to display NetHack correctly when using this option. cmd.exe prefers IBMgraphics to be enabled if the default graphics are not pleasant enough.
+
==Windows telnet==
 +
[[Image:HowToFixTelnetExe.png | right | thumb | Changing telnet.exe terminal emulation]]
 +
Most Windows users prefer [[PuTTY]], which can do telnet and is more feature-rich than the default telnet.exe. If, however, you're forced to use the Microsoft telnet.exe, be aware that by default it uses its own broken ANSI terminal emulation. This causes programs such as [[dgamelaunch]] to show messed up displays on your end. To fix this, set telnet.exe preferred emulation to vt100:
 +
# Start -> run -> telnet
 +
# Press 'd' and enter to display the current settings. There should be a line that says <tt>Preferred Term Type is ANSI</tt>
 +
# Type in <tt>set term vt100</tt> and press enter.
 +
# Press 'q' and enter to quit telnet.exe; the terminal type is saved automatically.
  
 +
== Telnet Ports ==
 +
nethack.alt.org listens on the standard telnet port. However, some firewalls block low port numbers. You may also connect on port 14321 if you can't connect on the regular port.
 
[[Category:Utilities]]
 
[[Category:Utilities]]

Latest revision as of 15:18, 10 January 2021

Telnet is a command line program used to connect to public servers. Almost all operating systems include a telnet client by default. For example, you may connect to nethack.alt.org to play NetHack online by typing

telnet nethack.alt.org

It should be noted that no command line interface is quite the same as any other, and thus connecting through telnet to a server on different computers may cause strange results, especially if DECgraphics or IBMgraphics are used.


Windows telnet

Changing telnet.exe terminal emulation

Most Windows users prefer PuTTY, which can do telnet and is more feature-rich than the default telnet.exe. If, however, you're forced to use the Microsoft telnet.exe, be aware that by default it uses its own broken ANSI terminal emulation. This causes programs such as dgamelaunch to show messed up displays on your end. To fix this, set telnet.exe preferred emulation to vt100:

  1. Start -> run -> telnet
  2. Press 'd' and enter to display the current settings. There should be a line that says Preferred Term Type is ANSI
  3. Type in set term vt100 and press enter.
  4. Press 'q' and enter to quit telnet.exe; the terminal type is saved automatically.

Telnet Ports

nethack.alt.org listens on the standard telnet port. However, some firewalls block low port numbers. You may also connect on port 14321 if you can't connect on the regular port.