Where to set ConnectionTimeout Value?

Hi,

I searched for NetworkError type “ConnectionTimeout”, it is located in BaseEngine.ini

[/Script/OnlineSubsystemUtils.IpNetDriver]
ConnectionTimeout=60.0
InitialConnectTimeout=60.0

Can I put this into my own project’s Config/DefaultEngine.ini ?
Or I need to modify the BaseEngine.ini in Engine Directory?

Thank you.

Just had the same question, did not find an answer anywhere so had not choice but to try it our myself.
The answer is: Yes, you can modify your project’s Config/DefaultEngine.ini file with the values you want, and it will automatically override the existing values of BaseEngine.ini in Engine Directory (for this particular project).

just add the following lines in your project’s Config/DefaultEngine.ini:

[/Script/OnlineSubsystemUtils.IpNetDriver]
ConnectionTimeout=10.0

(10 is an example . put any value that makes sense in your case).

The following example proves it actually works:

When I try to package game for Android I got following error after adding the line to the DefaultEngine.ini in the project:
UATHelper: Packaging (Android (ASTC)): ERROR: UnrealBuildTool.ConfigCacheIni_UPL+IniParsingException: Mismatched brackets when parsing section name in C:\WORK\MyProjects\ProjectX\Config\DefaultEngine.ini, line 142: [/Script/OnlineSubsystemUtils.IpNetDriver] ConnectionTimeout=10.0

You probably just have to insert a newline (the unreal answers markup removes it when code is not marked as such)

[/Script/OnlineSubsystemUtils.IpNetDriver]
ConnectionTimeout=10.0