Connect to a Remote Engine
Moderators: Watchman, Mark Uniacke, mrudolf
Connect to a Remote Engine
I have HIARCS running on my Mac laptop. I would like to connect that to a stronger server that I have running on my network that has Stockfish on it. This server is tuned to run stockfish, so it can analyze faster, and then my laptop battery does not die during heavy game analysis.
Is it possible to connect to a remote engine?
I tried creating a "shortcut" script on my laptop that connects to the server. When I run that it looks like I am running the Stockfish engine. But when I try to use that within HIARCS I get the error that the file "is not a valid UCI engine."
I know many other software programs allow this, and I was hoping HIARCS would as well.
Is it possible to connect to a remote engine?
I tried creating a "shortcut" script on my laptop that connects to the server. When I run that it looks like I am running the Stockfish engine. But when I try to use that within HIARCS I get the error that the file "is not a valid UCI engine."
I know many other software programs allow this, and I was hoping HIARCS would as well.
- Harvey Williamson
- Site Admin
- Posts: 6079
- Joined: Sun Jul 29, 2007 6:57 am
- Location: Media City, UK
- Contact:
I use remote engines all the time in HCE. You have to set up port forwarding in your router for each engine on your server. When you create UCI engine you must make sure the engine is running on the server otherwise you will get an error message as you describe.
You can download what I use from these 2 links:
https://harveywilliamson.com/engineClient.exe
https://harveywilliamson.com/engineServer.exe
You can download what I use from these 2 links:
https://harveywilliamson.com/engineClient.exe
https://harveywilliamson.com/engineServer.exe
- Harvey Williamson
- Site Admin
- Posts: 6079
- Joined: Sun Jul 29, 2007 6:57 am
- Location: Media City, UK
- Contact:
I am using this approach in NextGen for many years. I've just tried this in HCE 1.x and it works without any problem.mrnohr wrote:From other chess programs, I can connect to a remote stockfish (UCI) using SSH, which works fine. It seems like HIARCS does not
support that method so I'm looking for another approach.
What does your script look like?
Edit: this is my Stockfish running on Linux server.
My attempt at the script was just something like:What does your script look like?
Code: Select all
ssh matt@stockfishserver "/home/matt/bin/stockfish"
Indeed, it looks this is not enough for a file to be recognised as script by MacOS. Please try addingmrnohr wrote:My attempt at the script was just something like:Code: Select all
ssh matt@stockfishserver "/home/matt/bin/stockfish"
Code: Select all
#!/bin/sh
-
- Member
- Posts: 43
- Joined: Wed Nov 02, 2022 7:18 pm
Re:
Just found this thread, it's very interesting.
Did anybody try and run stockfish in a container?
The idea is to run it in the cloud.
And if this works, the next step could be lc0 with a proper gpu firepower, always in the cloud.
Did anybody try and run stockfish in a container?
The idea is to run it in the cloud.
And if this works, the next step could be lc0 with a proper gpu firepower, always in the cloud.
Re: Re:
You surely can run an engine on another computer by ssh, the container should not be any different.GoneBallistics wrote: ↑Mon Nov 27, 2023 9:41 am Just found this thread, it's very interesting.
Did anybody try and run stockfish in a container?
The idea is to run it in the cloud.
And if this works, the next step could be lc0 with a proper gpu firepower, always in the cloud.
HCE just expects the script to read from standard input and to write to standard output.