#Custom ItemSync server connection issue via vpn connection (w/ tailscale)

10 messages · Page 1 of 1 (latest)

jaunty fern
#

I am using tailscale to connect a friend to my computer using their VPN service so we can play Hollow Knight via HKMP.

With this and no other settings touched they can join my game and we can see each other.

We are using the mod ItemSync that keeps your items in sync. This worked fine but the public server went down so I tried to setup my own so we didn't need to rely on the public one. I am hosting this server for itemSync and it is listening to 0.0.0.0:38281

I set the ItemSync url/IP on my pc to be the tailscale ipV4 and it shows me connected when I run the list command.

My friend successfully connects to my pc with tailscale and can join the game via HKMP. He also shows in his modlog.txt file that "Attemping to connect to (my tailscale IP here, hidden for security)x.x.x.x:38281" and then "[INFO]:[ItemSyncMod] - Connected! (UID = 2)"

My pc also says in the mod.txt file for my own character "Attemping to connect to (my tailscale IP here, hidden for security)x.x.x.x:38281" and then "[INFO]:[ItemSyncMod] - Joining rando session 2005548807 as "Grubgirl" - (0)
[INFO]:[ItemSyncMod] - Connected! (UID = 1)"

However when I try to run the list command in the MultiWorldServer.exe window it only says "> list
1 current sessions
ID: 2005548807 players: 0: Grubgirl
Empty sessions: 0"

Which implies that only my connection is there. We also tried picking up an item and it did not sync.

Any help would be amazing as I can't find any other documentation on this

#

For even more context here is the ServerLog which shows a single line that indicates that UID 2 was assigned but no indication that Player entered the session.

[9:47:09 PM] Server "Default Server" listening to 0.0.0.0:38281!
[10:03:35 PM] Assigned UID=1
[10:03:35 PM] Connect sent!
[10:03:35 PM] Starting session for rando id: 2005548807
[10:03:35 PM] [2005548807] Player 0 joined session 2005548807
[10:10:00 PM] > list
[10:10:00 PM] 1 current sessions
[10:10:00 PM] ID: 2005548807 players: 0: Grubgirl
[10:10:00 PM] Empty sessions: 0
[10:10:51 PM] Assigned UID=2
[10:10:51 PM] Connect sent!
[10:11:06 PM] > list
[10:11:06 PM] 1 current sessions
[10:11:06 PM] ID: 2005548807 players: 0: Grubgirl
[10:11:06 PM] Empty sessions: 0
[10:28:00 PM] [2005548807] Player 'Grubgirl' (0) saved. Clearing 0 messages
[10:28:05 PM] Disconnecting UID 1
[10:28:05 PM] [2005548807] Player 0 removed from session 2005548807

gloomy orchid
#

Did you both start the game in the same ItemSync room together?

jaunty fern
#

Custom ItemSync server connection issue via vpn connection (w/ tailscale)

#

When we started the save yesterday via the public server we were in the same room and it worked perfectly. (took a second to realize it was case sensitive)

Today we simply modified the IP address via the ItemSyncMod.GlobalSettings.json and user3.modded.json to point to the new IP but we did not change usernames or any other values for the server. (such as MWRandoId or Username or SyncVanillaItems values)

#

The settings still include both of the nicknames from the userfile from what I can see.

"ItemSyncMod": {
"sentUnconfirmedDatas": [],
"nicknames": [
"Grubgirl",
"Pixyl"
],
"readyMetadata": [
{},
{}
],
"IsItemSync": true,
"URL": "X.X.X.X", (HIDING FOR PRIVACY)
"MWRandoId": 2005548807,
"MWPlayerId": 0,
"UserName": "Grubgirl",
"SyncVanillaItems": true,
"SyncSimpleKeysUsages": true
},

#

I guess we could try joining it on a new save just to see it it works rather than trying to mod our existing save but we already played for like 7hrs yesterday on the other save to it would be a bummer to have to start over from the beginning of the save...

gloomy orchid
#

I don't think that you can just edit the save file to work on a new server, because the server itself has to remember part of it as well

#

Because you also can't continue games if the server was restarted iirc

jaunty fern
#

Then hosting my own on my pc would be pointless because my PC won't be on 24/7.... That seems really bad if you can't start a new sync on an existing save and you can't restart the server...