Tabletop Simulator

Tabletop Simulator

Assisted Frosthaven
XHaven communications issues
Love this!
I do have a question about the xHaven Assistant integration. While I can get the Assistant to connect up my PC and mobile phone using either as servers. the integration give me a error:

Error Fetching State : Cannot resolve destination host

When I try to use localhost I get the following error:

Error in Script (Scenario Mat u2 - 4aa570): Invalid URI: Invalid port specified <73>

Any help would make me happy. I'm running on a Windows 11 machine
< >
Showing 1-15 of 31 comments
gudy  [developer] May 9, 2023 @ 6:14pm 
what port did you configure to use ?
djmharrison May 10, 2023 @ 6:36am 
I used 4567 for public internet and tried both 8080 and 80 for localhost. I could get Xhaven to communicate to my phone and vice verse with the public configuration but couldn't get it to talk to the TTS game
gudy  [developer] May 10, 2023 @ 6:44am 
I think that ports lower than 1024 are generally more tricky to get working. This being said there should be two ports set in X-Haven, one for other instances of X-Haven to connect (this is the regular port), and the web server port (this is the port that tts connects to). This mod requires a custom build of X-Haven assistant with the webserver.
djmharrison May 10, 2023 @ 8:33am 
tried again... downloaded new version of xhaven. I'm not sure where the custom build resides but I used the link in your doc.

The mod doesn't seem to understand "localhost". I've tried substituting "http://127.0.0.1" both with port 8080. I've also tried using the machine's URI with port 4567.

The error I'm getting is: "W ScenarioMat Error Fetching State : "Cannot resolve destination host"

I also get " Error connecting to X-Haven assistant. Is it running with the server enabled?"

... yes it is.

I'm sure I won't be the only one with this issue, but thanks for the help! BTW, I also turned off the Windows firewall with no impact.
brubie May 10, 2023 @ 9:48am 
I'm having similar issues, though I can't locate the checkbox for Also Enable Web Server. That box just doesn't exist on mine.
brubie May 10, 2023 @ 9:50am 
My Xhaven assistant says connection from "long address" Then starts spamming me with client left notices.
brubie May 10, 2023 @ 10:01am 
Nevermind, I read the instructions but didn't mentally process. I wasn't using your custom xhaven app.
gudy  [developer] May 10, 2023 @ 11:40am 
Originally posted by djmharrison:
tried again... downloaded new version of xhaven. I'm not sure where the custom build resides but I used the link in your doc.

The mod doesn't seem to understand "localhost". I've tried substituting "http://127.0.0.1" both with port 8080. I've also tried using the machine's URI with port 4567.

The error I'm getting is: "W ScenarioMat Error Fetching State : "Cannot resolve destination host"

I also get " Error connecting to X-Haven assistant. Is it running with the server enabled?"

... yes it is.

I'm sure I won't be the only one with this issue, but thanks for the help! BTW, I also turned off the Windows firewall with no impact.
So, the default web server port is 8080 in the assistant. To confirm that this is working (and started), you can open http://localhost:8080/state in a web browser. you should see some json data (which represents the current state of the assistant).
If this is working, then in TTS, for address, you should use the address without any prefix (no "http://", so simply 'localhost' or '127.0.0.1'
This mod requires a *custom* version of the assistant (see instructions), and will *not* work with the default x-haven assistant available in the app store.
djmharrison May 10, 2023 @ 2:28pm 
ok.. thanks for that. I deleted the xhaven directory and re-unzipped the custom one. Trying only from the browser and getting:

HTTP Error 404. The requested resource is not found.

so.. something is hosed.. Will check firewalls and routers just in case, but you would think localhost would work unless Win11 has a way to turn that off...
gudy  [developer] May 10, 2023 @ 7:03pm 
You may have an other program using 8080, maybe try 8081. Try to redownload the assistant, I fixed an issue with the port setting not being properly saved today.
djmharrison May 11, 2023 @ 8:08am 
It has been solved! Thank you for your help.

I found that Windows had commented out localhost in the hosts file. Once I uncommented the two needed lines, I started getting connection refused errors rather than 404 errors from the browser.

I then changed the port to 80 rather than 8080 as I suspected a conflict also and everything is working now.

We will be trying out the mod in full this Monday and the remote group is very excited as we don't get much face to face playtime. Now I will have our live group and a remote group in two separate campaigns. hmmm... here we go!
dredog11 May 11, 2023 @ 2:40pm 
Is it possible to run this mod without everyone having to have X-haven running?
gudy  [developer] May 11, 2023 @ 3:17pm 
That's possible, but then people without x-haven will not see what monsters do.
Genom May 11, 2023 @ 6:45pm 
Hey there. Thanks for teh hard work. I bought the narration pack and the group is super exceited to play this since we all live in different states now, but I am also getting an error. I downloaded your linked x-haven assistant, downloaded the audio, setup the server, and I can go to the url on my PC and see the status response, but in TTS, either using my local IP, localhost or 127.0.0.1 (that all respond in a web browser), I get the same port error seen in the screenshot at: https://imgur.com/a/I1gQGyc

If you have any suggestions on what to check, it would be greatly appreciated.
dredog11 May 11, 2023 @ 7:13pm 
@Genom, did you go into the x-haven settings and have it download the forteller library? Could also be a local firewall issue.
< >
Showing 1-15 of 31 comments
Per page: 1530 50