diff --git a/Facepunch.Steamworks.Test/AppTest.cs b/Facepunch.Steamworks.Test/AppTest.cs index 3b1e5fd..693abe2 100644 --- a/Facepunch.Steamworks.Test/AppTest.cs +++ b/Facepunch.Steamworks.Test/AppTest.cs @@ -46,6 +46,11 @@ namespace Steamworks Steamworks.SteamServer.Init( 252490, serverInit ); + // + // Needs to happen before LogOnAnonymous + // + SteamNetworkingSockets.RequestFakeIP(); + SteamServer.LogOnAnonymous(); } diff --git a/Facepunch.Steamworks.Test/NetworkingSockets.cs b/Facepunch.Steamworks.Test/NetworkingSockets.cs index 59dad4e..5e77c6f 100644 --- a/Facepunch.Steamworks.Test/NetworkingSockets.cs +++ b/Facepunch.Steamworks.Test/NetworkingSockets.cs @@ -57,8 +57,6 @@ namespace Steamworks SteamNetworkingUtils.DebugLevel = NetDebugOutput.Everything; SteamNetworkingUtils.OnDebugOutput += DebugOutput; - SteamNetworkingSockets.RequestFakeIP(); - var si = SteamNetworkingSockets.CreateRelaySocketFakeIP(); Console.WriteLine( $"Created Socket: {si}" ); @@ -131,9 +129,6 @@ namespace Steamworks // seems to prevent it returning null connections from ConnectNormal await Task.Delay( 2000 ); - Console.WriteLine( $"----- Requesting Fake IP.." ); - SteamNetworkingSockets.RequestFakeIP(); - Console.WriteLine( $"----- Creating Socket Relay Socket.." ); var socket = SteamNetworkingSockets.CreateRelaySocketFakeIP(); var server = socket.RunAsync();