Tabletop Simulator

Tabletop Simulator

Assisted Frosthaven
ThirdRex May 13, 2023 @ 12:29pm
Trouble Initiating Server/Client Connection
Clients can't connect to my server unless they are on my local network. I have set up port forwarding in my router settings, and have set the port to 2000 both in the router settings and on x-haven. X-haven is using my PC's local IP address to create the server, rather than the public IP address of my router, and I cannot manually change it to the public IP address. While the server is active, clients on a different network cannot join my server. TTS can communicate with the server through the 8080 web port. My best guess is that clients can't connect to my server because X-haven is hosting using a local IP address. Anyone know if I'm on the right track, or how I can fix my problem?
< >
Showing 1-8 of 8 comments
Genom May 15, 2023 @ 3:05pm 
Just FYI, X-haven creating the IP using your local address should not matter, as long as you tell the router to port forward whatever external port you are using to the correct one in X-Haven.

That said, I did notice that changing ports in X-haven on the latest download as of 2 days ago did not seem to really save the ports, so once I configured my port forwards using the default 4567 to my hosting machine, others connected just fine to my public IP.
gudy  [developer] May 15, 2023 @ 4:32pm 
Port settings are only saved when you start the server (this is regular assistant behavior). I could also have introduced a bug making even that broken ... will check.
Genom May 15, 2023 @ 6:47pm 
I had not used it so was not aware, but I'll try changing it tomorrow.
ThirdRex May 15, 2023 @ 8:00pm 
Thanks for the comments. Turns out I'm a big dummy and was looking at the wrong IP. I didn't notice that the first IP listed is local, while the other is public. Have been using it without difficulty since this realization.
Genom May 18, 2023 @ 9:14pm 
OK. The other day I tested narration with someone, it was them hearing it over Discord instead of in game. Just spent a bit of time working on getting TTS sharing to work since I am the only one that purchased the narration assets.

I am using the current Workshop version. When I start X-haven, start the server (with web server enabled), I have verified my firewall is allowing port 8080 to my host machine. Doing a http://my-static-external-ip:8080/state shows the JSON info for all my friends, so firewall is forwarding correctly.

When loading the mod, it by default shows localhost and when you enable the integration it connects just fine. If I make sure the Narration is NOT going to the assistant, but TTS, obviously like that nobody hears anything. If I then disable the assistant integration checkbox, change the localhost line to my external IP, hit enter, and re-enable assistant, I get the following:

https://imgur.com/a/C3gsdbO

If I disable the integration, change it back to localhost, or 127.0.0.1, or anything else and turn it back on, the same error persists. I have to go and load a new workshop mod game for it to go away. I then took the fresh mod file, and went into it and manually changed the localhost instances to my static external IP. I then loaded the mod and it worked! for like 15 minutes, before it changed itself back to 127.0.0.1 and stopped working again.

By this point I had been messing with it to get it working fcor a couple hours so we gave up for the night.

If me running your dev save off github can help gather info, or you would like me to host a session to test, let me know, but I have no clue whats happening. Even if you can tell me what lines to correctly hard code my IP into it would be appreciated.

Thanks!
gudy  [developer] May 19, 2023 @ 6:39am 
The issue is pressing "enter" after you type your IP. I'll add code to deal with that. "Enter" simply adds a new line to your address, which isn't valid anymore after that...
gudy  [developer] May 19, 2023 @ 7:16am 
I've pushed a version to github, that should now ignore "enter" in address and port.
Genom May 19, 2023 @ 3:56pm 
Aaahhh. OK, thanks sir. Never figured that would be it.
< >
Showing 1-8 of 8 comments
Per page: 1530 50