Hi,
I’m having issues connecting to my dedicated server hosted on azure playfab, it used to work but I removed the EOS Plugin by mistake (or I thought that was the error) I put it back but still get this error Client get disconnected for timeout :
[2024.05.29-15.07.53:807][834]LogNet: Warning: UNetConnection::Tick: Connection TIMED OUT. Closing connection.. Elapsed: 60.11, Real: 60.00, Good: 60.00, DriverTime: 61.32, Threshold: 60.00, [UNetConnection] RemoteAddr: 52.178.158.8:30000, Name: IpConnection_2147482344, Driver: GameNetDriver NetDriverEOS_2147482345, IsServer: NO, PC: NULL, Owner: NULL, UniqueId: INVALID
Here’s my .build.cs :
using System;
using System.IO;
using UnrealBuildTool;
public class GuessTheMurder : ModuleRules
{
void CopyFolderContents(string sourceDir, string targetDir, string relativePath = "")
{
// If directory does not exist, create it
if (!Directory.Exists(targetDir))
Directory.CreateDirectory(targetDir);
// Copy files
foreach (string filePath in Directory.GetFiles(sourceDir))
{
string fileName = Path.GetFileName(filePath);
string targetFilePath = Path.Combine(targetDir, relativePath, fileName);
// Add the file as a runtime dependency
RuntimeDependencies.Add(targetFilePath, filePath);
}
// Recursively copy subdirectories
foreach (string subDirPath in Directory.GetDirectories(sourceDir))
{
string subDirName = Path.GetFileName(subDirPath);
string subDirRelativePath = Path.Combine(relativePath, subDirName);
string targetSubDirPath = Path.Combine(targetDir, subDirRelativePath);
CopyFolderContents(subDirPath, targetDir, subDirRelativePath);
}
}
public GuessTheMurder(ReadOnlyTargetRules Target) : base(Target)
{
PCHUsage = PCHUsageMode.UseExplicitOrSharedPCHs;
bEnableExceptions = true;
PublicDependencyModuleNames.AddRange(new string[]
{
//default modules
"Core",
"CoreUObject",
"Engine",
"InputCore",
"HeadMountedDisplay",
//added modules
"SignalProcessing",
"AudioMixer",
"XmlParser",
"UMG",
"Projects",
"PlayFabGSDK",
"UniversalVoiceChatPro",
"OnlineSubsystem",
"OnlineSubsystemUtils",
}
);;
//add MyBlueprintFunctionLibrary as a include path
PublicIncludePaths.AddRange(new string[] {
Path.Combine(ModuleDirectory, "Public")
}
);
if (Target.bWithServerCode)
{
PublicIncludePaths.Add(@"C:\\Users\\PC\\Desktop\\StageSofiane\\GuessTheMurder\\Source\\ThirdParty\\GSDK\\include");
PublicAdditionalLibraries.Add(@"C:\\Users\\PC\\Desktop\\StageSofiane\\GuessTheMurder\\Source\\ThirdParty\\GSDK\\lib\\Windows\\x64\\Release\\dynamic\\GSDK_CPP_Windows.lib");
PublicAdditionalLibraries.Add(@"C:\\Users\\PC\\Desktop\\StageSofiane\\GuessTheMurder\\Source\\ThirdParty\\GSDK\\lib\\Windows\\x64\\Release\\dynamic\\libcurl.lib");
//add runtime dependencies for gsdk
RuntimeDependencies.Add("$(TargetOutputDir)\\GSDK_CPP_Windows.lib",
"$(ProjectDir)\\Source\\ThirdParty\\GSDK\\lib\\Windows\\x64\\Release\\dynamic\\GSDK_CPP_Windows.lib", StagedFileType.SystemNonUFS);
RuntimeDependencies.Add("$(TargetOutputDir)\\libcurl.lib",
"$(ProjectDir)\\Source\\ThirdParty\\GSDK\\lib\\Windows\\x64\\Release\\dynamic\\libcurl.lib", StagedFileType.SystemNonUFS);
RuntimeDependencies.Add("$(TargetOutputDir)\\libcurl.dll",
"$(ProjectDir)\\Source\\ThirdParty\\GSDK\\lib\\Windows\\x64\\Release\\dynamic\\libcurl.dll", StagedFileType.SystemNonUFS);
RuntimeDependencies.Add("$(TargetOutputDir)\\libssl-1_1-x64.dll",
"$(ProjectDir)\\Source\\ThirdParty\\GSDK\\lib\\Windows\\x64\\Release\\dynamic\\libssl-1_1-x64.dll", StagedFileType.SystemNonUFS);
RuntimeDependencies.Add("$(TargetOutputDir)\\libcrypto-1_1-x64.dll",
"$(ProjectDir)\\Source\\ThirdParty\\GSDK\\lib\\Windows\\x64\\Release\\dynamic\\libcrypto-1_1-x64.dll", StagedFileType.SystemNonUFS);
}
//add the folder Content/Session/Texts/ as a dependency
string sourceDir = Path.Combine(ModuleDirectory, "../../Content/Sessions/Texts/");
string targetDir = "$(TargetOutputDir)\\..\\..\\Content\\Texts\\";
CopyFolderContents(sourceDir, targetDir);
//add the folder Content/Session/Sounds/ as a dependency
sourceDir = Path.Combine(ModuleDirectory, "../../Content/Sessions/Sounds/");
targetDir = "$(TargetOutputDir)\\..\\..\\Content\\Sounds\\";
CopyFolderContents(sourceDir, targetDir);
}
}
And here’s my defaultEngine.ini :
[Voice]
bEnabled=true
[OnlineSubSystem]
DefaultPlatformService=EOS
[/Script/Engine.GameEngine]
+NetDriverDefinitions=(DefName="GameNetDriver",DriverClassName="OnlineSubsystemEOS.NetDriverEOS",DriverClassNameFallback="OnlineSubsystemUtils.IpNetDriver")
[/Script/SocketSubsystemEOS.NetDriverEOS]
IsUsingP2PSockets=true
And the full log :
GuessTheMurder.log (103.1 KB)