Arena 3.5.1 - Autoplayer

Discussion of anything and everything relating to chess playing software and machines.

Moderator: Ras

User avatar
hgm
Posts: 28543
Joined: Fri Mar 10, 2006 10:06 am
Location: Amsterdam
Full name: H G Muller

Re: Arena 3.5.1 - Autoplayer

Post by hgm »

But why would they want to? The auto-player served a function in the 902, when computers were isolated entities, and making two of themcommunicate was a techical miracle in itself. Anno 2016 a computer is considered worthless junk when it is not connected to the internet.

So communication between computers for whatever application nowadays is completely trivial, so that there is no need to design special solutionsfor it in Chess software. And in particular, there is no need to design special solutions that make use of obsolete nocomputer has anymore. If a GUI nowadays would want to support peer-to-peer connections, it would of course do it using TCP/IP connections that every computer anno 2016 has.

For playing inter-computer matches it is doubtful whether peer-to-peer is the proper solution, though. It seems that using GUIs on both machines just complicates matters. This is why I have different software for remote engine play (connect.exe), and a separate p2p.exe for remote human-human play (where it is essential that there is a GUI on both ends). Of course the p2p.exe pseudo-engine can also be used in engine-engine mode on one or both ends of the connection. But there are intrinsic problems to usuing two GUIs, like whose clock is decisive in cases of time lag. So it is better to avoid it if you can. But if you are willing tolive with the intrinsic disadvantages, using p2p.exe to connect a GUI of any type against a GUI of any other type on anothe rmachine, it would certainly be possible.
User avatar
Nordlandia
Posts: 2850
Joined: Fri Sep 25, 2015 9:38 pm
Location: Sortland, Norway

Re: Arena 3.5.1 - Autoplayer

Post by Nordlandia »

So in according your experience and conjunction, it's not recommended using Fritz 15 on both computers in case running with Connect64.exe?

Today my router will be changed to wifi so i may be able to test it later today.

Wireless connection between my i7-5960X and i5-5200U.
User avatar
Nordlandia
Posts: 2850
Joined: Fri Sep 25, 2015 9:38 pm
Location: Sortland, Norway

Re: Arena 3.5.1 - Autoplayer

Post by Nordlandia »

Now i'm connected wirelessly!

Regarding Connect64.exe
To use it, issue the command

connect2 -ec "ENGINECOMMAND" -ed "ENGINEFOLDER"

on the machine where you want to run the engine. This will run it as a server on the default port (27015) with the default password, which is normally good enough. (If not you could add -p PORTNUMBER -pw PASSWORD arguments.) A reason to use other ports than the default could be that you want to set up servers for several engines, which should then each be on a different port.

Then on the other machine 'install' connect2.exe as engine (in the GUI), with the startup command

connect2 HOST_IP_ADDRESS

This will then connect to the server you set up on the indicated machine through the default port using the default password. If you would have changed any of those, you would have to do that also here, by slipping in -p and/or -pw options before the host IP address. Running connect2 this way will make it a proxy for the engine on the indicated host.

That is all.
Can you provide some pictures if not video if you have time at disposal. This seems somewhat complicated.
User avatar
hgm
Posts: 28543
Joined: Fri Mar 10, 2006 10:06 am
Location: Amsterdam
Full name: H G Muller

Re: Arena 3.5.1 - Autoplayer

Post by hgm »

You could already have connected them wirelessly with the old router, right? Computer A with the ethernet cable to the router, and computer B to computer A over the WiFi they both support, as in the link I gave.

I don't know what you expect screenshots of. I suppose you know how to start the Windows command prompt, and how to type a command there. Thatis all you have to do on the engine side, and what exactly you have to type depends on what engine it is, where you put it, and where you put connect2.exe. And what brand of firewall you use. None of which I could reproduce.

On the machine where you have the GUI you just have to install connect2.exe as an engine, with the I.P. address of the other computer as parameter. How exactly to do that depends on what GUI you want to use. I suppose you do know how to run an engine in your favorite GUI. And if that is not the same as what I use (i.e. if it is not WinBoard or XBoard) screen shots would not be of much use either.

If you don't know the I.P. addresses of yourcomputers you could type "ipconfig" in the command prompt, and it will tell them. Or you could log on to your router, and let it print the "DHCP client list". Again, how to do that and how the screen shots wouldlook depends entirely on your brand and type of router.
User avatar
Nordlandia
Posts: 2850
Joined: Fri Sep 25, 2015 9:38 pm
Location: Sortland, Norway

Re: Arena 3.5.1 - Autoplayer

Post by Nordlandia »

Appreciate for replies!

Do i have to type the commands in cmd before i launch the gui or vice versa?

Also i'm quite sure i will type something wrong in cmd or gui for that matter.

connect2 -ec "ENGINECOMMAND" -ed "ENGINEFOLDER"

Then on the other machine 'install' connect2.exe as engine (in the GUI), with the startup command

connect2 HOST_IP_ADDRESS.

Code: Select all

connect64.exe -ec "ENGINECOMMAND" -ed "ENGINEFOLDER""

Not entire sure what enginecommand means. 

[quote]connect64.exe HOST_IP_ADDRESS "----?" with out without quotes?[/quote]
User avatar
hgm
Posts: 28543
Joined: Fri Mar 10, 2006 10:06 am
Location: Amsterdam
Full name: H G Muller

Re: Arena 3.5.1 - Autoplayer

Post by hgm »

ENGINECOMMAND will be something like Stockfish-6-sse42.exe or Pos --io-mode xboard. You should write the quotes around them as a habit, but they are really only essential when the ENGINECOMMAND itself contain spaces. That also applies to ENGINEFOLDER (which could be something like C:\Program Files\Chess Engines\Stockfish).

You should indeed start the engine in the GUI only after you started connect2.exe on the other machine. (You could start the GUI earlier with another engine,though. Only when you start connect2.exe as an engine in that GUI it will try to contact the remote machine, and when it doesn't get a reply at that time it terminates.) The connect2.exe on the remote machine will remain active for multiple games or sessions. (I.e. you could close the GUI, and even power down the computer where it was running, and when you boot it again and restart the GUI it will just make a new connection to the remote engine, which would still be waiting for it.) The machine where you started connect2.exe from the command prompt will remain available as engine server until you explicitly terminate connect.exe (by typing Ctrl-C in the window where you started it), or close the command-prompt window where it runs. (Better not do either of those when the GUI on the other machine was still using the engine.)
User avatar
Nordlandia
Posts: 2850
Joined: Fri Sep 25, 2015 9:38 pm
Location: Sortland, Norway

Re: Arena 3.5.1 - Autoplayer

Post by Nordlandia »

Like i said it's not not easy doing it for the first time without visual assistance.

'connect64.exe' is not recognized as an internal or external command,
operable program or batch file.
connect64.exe -ec "komodo-9.3-64bit.exe" -ed "F:\Chess Engines\Komodo"
Error messages.

In addition AVG seems to detect connect64.exe as suspicious file, and removed on file directory.
User avatar
hgm
Posts: 28543
Joined: Fri Mar 10, 2006 10:06 am
Location: Amsterdam
Full name: H G Muller

Re: Arena 3.5.1 - Autoplayer

Post by hgm »

You should first change to the directory where you saved connect2.exe. E.g. if that is in C:\ChessEngines

you would first type in the command prompt

cd C:\ChessEngines

Then you should be able to run it through the command

connect2 whatever

without getting an error message. The alternative is to run it using the full path name when starting it, like

C:\ChessEngines\connect2 whatever

Windows must somehow be told where to find it, or you cannot expect it to work...

As to AVG: yes, that might dislike computers making connections to each other, or even the mere fact that you run a .exe that you downloaded. Normally a firewall would pop up a dialog alerting you that a program wants to do something that might be dangerous, and ask you whether you want to allow it or not. (And in this case you should then of course allow it.) If AVG does not behave this way, just switch it off. Although it would probably be good enough to add connect2.exe as an 'exception' in the Options->Advanced dialog of AVG (under 'Update').
User avatar
Nordlandia
Posts: 2850
Joined: Fri Sep 25, 2015 9:38 pm
Location: Sortland, Norway

Re: Arena 3.5.1 - Autoplayer

Post by Nordlandia »

I did as you metioned in AVG!

C:\WINDOWS\system32>I:\connect64
# waiting to connect
# set up server
# listening on port 27015

Reply from CMD.

connect64.exe is inside that "I:\connect64" folder.

Now what is the next correct order to proceed?
User avatar
hgm
Posts: 28543
Joined: Fri Mar 10, 2006 10:06 am
Location: Amsterdam
Full name: H G Muller

Re: Arena 3.5.1 - Autoplayer

Post by hgm »

Well, you should have typed something like

I:\connect64\connext64.exe -ec "Stockfish-6-sse42.exe" -ed "wherever\you\have\stockfish"

or connect64.exe would not know what engine to start once a connection is made.

After you did that, a good first test is to try to run that engine from the command line on the other machine. I.e. also install it there, open a command-prompt window, cd to the place where you put it, and type

connect64 IP_OF_THE_OTHER_MACHINE
uci


If you typed the correct I.P. address, it should then answer with all Stockfish' UCI options. If it does, you know the connection works, and can terminate the test by typing

quit

That will close Stockfish on the other machine (but not the connect64 there, which will remain waiting for another connection), and the connect64 on the machine where you typed. Note that when you first make the connection, Windows itself (even without AVG) might still prompt you on the machine with the engine for permission to allow that connection, but if you have done that once it will not bother you again on future connections.

If you don't know the I.P. address, you should type ipconfig at the command prompt of the machine with the engine, and post the response to it here. It should be something like 192.168.0.100 .

If you managed to make the connection from the command line, you would have to install the connect64.exe as an engine in the GUI you want to use, with the startup command that worked when you typed it. How you have to do that obviously depends on what GUI you are using.