Using a direct connection

  Previous topic Next topic  

It is also possible to play without a chess server, in this case you have a direct connection to someone also using the program. One of the players need to take the role as server, while to other takes the role as client. Further operation is similar as when using a chess server.

Next a step by step procedure is given for both the server as the client role.

Server role

Create or open an Internet console, make sure to set the Console type to ChessPartner server. This can be done in the console properties.
To activate the server, press the connect button, fill in your nickname. The console window will show << Server ready on port: 5000 >>
At this point the server is ready to receive a connection from the remote client. One note, the remote client needs to know the computer name or IP address of the server. In case of a dialup connection this IP address may be different every time. To find out your current IP address use the dialup monitor, this can be found somewhere under details (check your OS manual). In windows 95/98 you can also use the winipcfg program, just run it from the ‘Run’ option below the Start button.

Client role

Create or open an Internet console, make sure to set the Console type to ChessPartner client. This can be done in the console properties. In hostname file in the computer name or IP address of the remote player.
Press the connect button to active the connection. Fill in your own name. If all goes well, you should see the welcome screen from the remote server, like : << Chess partner welcomes
you>>.
Now there is a direct connection between the two programs, you can chat by just typing some text in the console windows and pressing enter.
To start a game use the Challenge command just as you would do when you are connected to a real chess server. If the remote player accepts the challenge the game is started.

Using ICQ

It is possible to find out the remote player’s IP address when both players have an ICQ account, for instructions how to do this check out the ICQ documentation.

Also it is possible to start the program with some command line options to pass the IP address.

 

Command line parameters:

 

CP5.EXE  Filename [options]

Filename should be the name of a saved Internet console configuration, e.g. “icqfriend.fic” . If the filename contains spaces, you must enclose it in quotes.

 

The following options can be used:

/Host=name[:port]

With this option you can specify to which remote computer to connect. The name can be a hostname or a IP address plus an optional port number.

/HostType=n

This option specifies to type of host to connect to, the n parameter can have to following values:

0        - Internet Chess Server

1        - ChessPartner Client

2        - ChessPartner Server

 

/Name=username[:password]

Here you can pass the user name that is sent during the logon sequence.

 

/HostOptions=n

Additional options can be given, the value n are a number of bit flags. 1=computer plays, 2=auto challenge accept.

 

Sample ICQ configuration:

 

 

External Application Executable:

c:\Program files\Lokasoft\ChessPartner5.0\CP5.exe

Command Line:

/Host=%i:5000 /HostType=1 /Name=%h

 

External Application Server Executable:

c:\Program files\Lokasoft\ChessPartner5.0\CP5.exe

Server Command Line:

/Host=localhost:5000 /HostType=2 /Name=%h