Connect to FreeChess.org with examples.telnet.TelnetClientExample.java

Q

How to connect to FreeChess.org with examples.telnet.TelnetClientExample.java program? I want to play chess on the web for free.

✍: FYIcenter.com

A

If you want to play chess on FreeChess.org with examples.telnet.TelnetClientExample.java program, you can connect to www.freechess.org on port 5000 and login as a guest:

C:\fyicenter>\local\jdk-1.8.0\bin\java 
   -cp .;C:\local\commons-net-3.5\commons-net-3.5.jar
        ;C:\local\commons-net-3.5\commons-net-examples-3.5.jar 
   examples.telnet.TelnetClientExample www.freechess.org 5000

TelnetClientExample
Type AYT to send an AYT telnet command
Type OPT to print a report of status of options (0-24)
Type REGISTER to register a new SimpleOptionHandler
Type UNREGISTER to unregister an OptionHandler
Type SPY to register the spy (connect to port 3333 to spy)
Type UNSPY to stop spying the connection
Type ^[A-Z] to send the control character; use ^^ to send ^

             _       __     __                             __
            | |     / /__  / /________  ____ ___  ___     / /_____
            | | /| / / _ \/ / ___/ __ \/ __ `__ \/ _ \   / __/ __ \
            | |/ |/ /  __/ / /__/ /_/ / / / / / /  __/  / /_/ /_/ /
            |__/|__/\___/_/\___/\____/_/ /_/ /_/\___/   \__/\____/
       ^^__                  _____________________                 _  _  _
      /  - \_               / ____/  _/ ____/ ___/   _            | || || |
    <|    __<              / /_   / // /    \__ \   (_)           |_______|
    <|    \               / __/ _/ // /___ ___/ /  _              \__ ___ /
    <|     \             /_/   /___/\____//____/  (_)              |___|_|
    <|______\                                                      |_|___|
     _|____|_        ======================================        |___|_|
    (________)         freechess.org  ----  167.114.65.195        (_______)
    /________\       ======================================       /_______\
                       (Login screen designed by Alefith)

   ****** Welcome to the Free Internet Chess Server at freechess.org ******

Webpage: http://www.freechess.org
Head admin : Chessty   Complaints to : complaints@freechess.org
Server location: freechess.org   Server version : 1.25.20

      If you are not a registered player, enter guest or a unique ID.
             (If your return key does not work, use cntrl-J)

login: guest
Logging you in as "GuestHWDR"; you may use this name to play unrated games.
(After logging in, do "help register" for more info on how to register.)

Press return to enter the server as "GuestHWDR": <Enter>

**** Starting FICS session as GuestHWDR(U) ****
------------------------------------------------------------------------------
                         *** Message Of The Day ***

Today's Scheduled Events:
    0730: The Daily 5 0
    0900: Saturday Chess Marathon #/4
    1130: Saturday SOS SUICIDE tournament
    1230: Saturday's Scheduled 20 5
    1700: Chesslecture.com Prize Tournament
    2200: The Nightly 5 0

To join a scheduled tournament, join channel 49 (+channel 49)
And be there for the scheduled start.

For a complete tournament schedule, type "td help schedule"
Regular tournaments are run all day, "td set tourneyinfo on" to see them.

All times are server times.
To check the current server time, use "date".
==============================================================================
FICS web page: http://www.freechess.org   - add a link to FICS from your page
==============================================================================

Newcomers:
  type 'help intro_basics' for some basic server commands and files.
  type 'help chan_4' to learn how to ask for help on the help channel.
  type 'help register' to learn how to get a registered account.
  type 'help interfaces' for information on getting a graphical interface.
  type 'showadmins' to see which admins (FICS administrators) are logged on.
  type 'set shout 1' to see shouts (only registered users may shout).
  type 'set seek 0' if receiving ads for matches bothers you.
  type 'set open 0' if you do not want to be challenged to a chess match.
  type 'set silence 1' if you wish to have quiet play.
  type 'getgame' to get a blitz chess game.

Special channels for guests:
  type 'tell 4 <message>' if you need help
  type 'tell 53 <message>' to chat with other users

  A quick guide is available on our web page: http://www.freechess.org
   as are facilities to register, connect via a java interface or download
   interfaces, so that you get a graphical board and can use the mouse.

NOTE:  Guests with foul or abusive names may be 'nuked' without warning!!!

fics%
GuestGYGZ (++++) seeking 5 0 unrated blitz ("play 11" to respond)
fics%
CatNail(C) (2048) seeking 3 0 unrated suicide m ("play 147" to respond)
...

fics% exit
Logging you out.
...

 

Using commons-net.jar in Java Programs

⇒⇒FAQ for Apache commons-net.jar

2017-05-05, 286👍, 0💬