canonical / steam-snap

Steam as a snap
75 stars 9 forks source link

Valheim local dedicated server fails to connect playfab #298

Open conromia opened 1 year ago

conromia commented 1 year ago

Is there an existing issue for this?

Have you checked the wiki for solutions?

Is this a Steam Snap-specific issue?

Current Behavior

When trying to connect to a Valheim dedicated server locally hosted on the same network, the connection fails with either direct IP or public IP. Using non snap version of steam works fine.

Expected Behavior

Connect to server.

Steps To Reproduce

  1. Have a local dedicated Valheim server setup
  2. Install steam from the snap store
  3. Install Valheim
  4. Run Valheim and try to connect to server

Environment

/usr/share/libdrm/amdgpu.ids: No such file or directory
os_release: 
    name:               "Ubuntu"
    version:            "23.04 (Lunar Lobster)"
snap_info: 
    steam_revision:     150
    snapd_revision:     19993
lspci: 
    2f:00.0:            Advanced Micro Devices, Inc. [AMD/ATI] Navi 21 [Radeon RX 6800/6800 XT / 6900 XT] (rev c1)
glxinfo: 
    gpu:                NAVI21 (navi21, LLVM 15.0.7, DRM 3.49, 6.2.0-27-generic)
    gpu_version:        4.6 (Core Profile) Mesa 23.1.4 - kisak-mesa PPA
lscpu: 
    model_name:         AMD Ryzen 7 5800X 8-Core Processor
xdg_current_desktop:    ubuntu:GNOME
desktop_session:        ubuntu

gaming-graphics-core22 version

kisak-fresh (default)

Anything else?

Screenshot from 2023-08-22 11-40-28 Screenshot from 2023-08-22 11-40-51

ashuntu commented 1 year ago

I can't reproduce this. I have a Valheim server running on my network (using this nice Docker image, for reference) and I'm able to connect to it via Steam on a Windows PC as well as with the Steam Snap on Ubuntu, each on separate devices from the server.

Can you double-check to make sure the exact IP/Port combo works on the non-Snap Steam? Failing that, are there any logs generated by Steam after you try to connect to the server? You can get logs by running Steam from a terminal with snap run steam.

conromia commented 1 year ago

I'm running Valheim server on an old windows laptop using Steam CMD. Not sure if that has anything to do with it. (But internal clients connect fine with deb version of steam)

No errors in the snap run steam terminal output. (Attached snippet of when the game starts)

I connect to the server using the same IP and port in my favourites section, I've tried using the server code as well, they show up and say they are available (0/10 players - version number) but still fails to connect.

Is there any other log from the steam folder that might be helpful?

It feels like a NAT-ing issue with how snap handles routing possibly? I'll setup a dNAT rule to point the IP back to the internal servers IP and see how that goes, but from my understanding Playfab is external and needs to do some work on their end?

Snap Run Steam Log.txt

EDIT: I can add the server to the Steam favourite server list using port IP:2457 instead of 2456 but it still fails to connect.

I connected my computer to my phones hotspot and same problem. My friends externally can connect fine.

UPDATE: With -crossplay removed i can connect fine with the snap version of Steam and Valheim. Seems like something to do with playfab and crossplay and the snap package.