Open GeorgeA93 opened 1 year ago
I'm having nearly the same issue, did you ever find a solution?
I ended up replacing this library with Steamworks.NET. It's a lot more annoying to work with but seems to work fine
Never found the issue sadly. You won't like this resolution, but I actually replaced my laptop recently (macbook pro 2019 for an M2 air) and it just started working.... Absolutely no idea why.
I also contemplated switching to that lib as a test, but didn't like the look of the interface. I might still have to if this issue impacts other devices.
That's odd, I figured it would have been with all MacOS devices.
Steamworks.NET is a lot weirder than Facepunch, and looks a lot messier, but once you get used to it it's not terrible.
Describe the bug
On OSX 12.5.1 I cannot connect to a local P2P server, however I can on Windows 10 and 11.
As far as I can tell I am able to connect to the steam relay server, and it figures out that my server is running on the same machine so it tries to connect via loopback, but as soon as it tries to connect, the client disconnects. However on windows, this is not the case, the client connects absolutely fine.
For testing I am running steam in the background with the same user logged in, I have also tried different users but to no avail.
To Reproduce Steps to reproduce the behavior:
dotnet run
Expected behavior
The server should connect, but it does not.
Desktop (please complete the following information):
Additional context
I can also not connect remotely from a another machine, however I can connect out from this Mac to a Windows machine. Very strange.
I have added a lot of logging and it looks like this:
You will notice in the above that the CLIENT DISCONNECT happens straight away (this is a log in the connection managers
OnDisconnect
callback for the client). This happens after receiving connection info with the state None. My theory is that OSX is dropping a packet somewhere. I will eventually get a log saying the connection timed out as the connection was not accepted.When I try connecting to the OSX server from a windows machine I get the following logs on the OSX side:
It also smells very similar to https://github.com/Facepunch/Facepunch.Steamworks/issues/387 but I have tried to stop as many other services as possible when running the test and it doesn't seem to help. Also, I'm not running chromium.
I have also been trawling through the network traffic with wireshark + tcpdump but cannot for the life of me figure out why this is happening, it is just connecting over the loopback so should be fine.
Let me know if this is actually a bug with steamworks, not facepunch! Anything you can suggest to help me debug would also be much appreciated.
Thanks!