I’ve been trying for a while to make my dedicated server appear in the list of steam servers in the internet tab, the server is connectable, but it doesn’t appear in the list of servers in the internet tab, only locally, I have the ports on the modem open 27017 and the firewall turned off .
This is my configuration:
Target.CS:
Type = TargetType.Server;
bUsesSteam = true;
DefaultBuildSettings = BuildSettingsVersion.V2;
ExtraModuleNames.AddRange(new string[]{"MyProject","Networking","Sockets"});
GlobalDefinitions.Add("UE4_PROJECT_STEAMPRODUCTNAME=\"TestingGame\"");
GlobalDefinitions.Add("UE4_PROJECT_STEAMGAMEDESC=\"TestingGame\"");
GlobalDefinitions.Add("UE4_PROJECT_STEAMGAMEDIR=\"TestingGame\"");
GlobalDefinitions.Add("UE4_PROJECT_STEAMSHIPPINGID=480");
Build.cs:
PCHUsage = PCHUsageMode.UseExplicitOrSharedPCHs;
PublicDependencyModuleNames.AddRange(new string[] { "Core", "CoreUObject", "Engine", "InputCore", "OnlineSubsystem", "OnlineSubsystemUtils", "Steamworks", "OnlineSubsystemSteam" });
PrivateDependencyModuleNames.AddRange(new string[]{"Networking","Sockets"});
DynamicallyLoadedModuleNames.Add("OnlineSubsystemSteam");
PrivateDependencyModuleNames.Add("OnlineSubsystem");
Another problem is that in the server list my game appears as “Unreal Test” and the map appears blank.
My Session Setup called before and after creating a session:
FString USessionOverrideFunctionLibrary::SessionOverride(FString LevelName)
{
FOnlineSessionSettings SessionSettings;
SessionSettings.bIsDedicated = true;
SessionSettings.bIsLANMatch = false;
SessionSettings.bUsesPresence = false;
SessionSettings.bShouldAdvertise = true;
SessionSettings.BuildUniqueId = 1;
TEXT("%s"), *LevelName;
SessionSettings.Set(SETTING_MAPNAME, LevelName, EOnlineDataAdvertisementType::ViaOnlineServiceAndPing);
return(LevelName);
}
My DefaultEngine.ini:
[/Script/Engine.GameEngine]
!NetDriverDefinitions=ClearArray
+NetDriverDefinitions=(DefName="GameNetDriver",DriverClassName="/Script/SteamSockets.SteamSocketsNetDriver",DriverClassNameFallback="/Script/SteamSockets.SteamNetSocketsNetDriver")
[Voice]
bEnabled=true
[OnlineSubsystem]
DefaultPlatformService="Steam"
bHasVoiceEnabled=true
bAllowP2PPacketRelay=true
bUseSteamNetworking=true
bUseBuildIdOVerride=true
BuildIdOverride=1
[OnlineSubsystemSteam]
bEnabled=true
SteamDevAppId=480
SteamAppId=480
GameServerQueryPort=27015
bRelaunchInSteam=false
bUseSteamNetworking=true ;alterado
GameVersion=1.0.0.0
bVACEnabled=1
bAllowP2PPacketRelay=true ;alterado
P2PConnectionTimeout=180
bUseLobbiesIfAvailable = false ;alterado
bInitServerOnClient=false
[/Script/OnlineSubsystemSteam.SteamNetDriver]
NetConnectionClassName="OnlineSubsystemSteam.SteamNetConnection"
[Core.Log]
LogOnline=All
LogOnlineGame=All
What did I do wrong?