[Unreal Engine 4.27.2] Dedicated Server only appears in local Steam list
Dedicated Server only appears in local Steam list
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);

}


r/unrealengine - Dedicated Server only appears in local Steam list
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?
< >
Beiträge 18 von 8
ReBoot 15. Dez. 2022 um 11:35 
UE needs more ports.
Ursprünglich geschrieben von ReBoot:
UE needs more ports.
Do you know which ones? I'm using 27015 and 27017 as described on the steam wiki.
Zuletzt bearbeitet von Suundumused; 15. Dez. 2022 um 11:37
ReBoot 15. Dez. 2022 um 11:39 
Another is 7777
Ursprünglich geschrieben von ReBoot:
Another is 7777
I stopped using 7777, I changed it to 27017 in the server startup parameters.When I used 7777 the server didn't appear in the steam server list neither remotely nor locally, but using 27017 it appears at least locally.
ReBoot 15. Dez. 2022 um 11:43 
You need to forward both.

Generally, anyway. Is there really no server documentation for the game in question?
Ursprünglich geschrieben von ReBoot:
You need to forward both.

Generally, anyway. Is there really no server documentation for the game in question?
Already forwarded a port for everything. There is no documentation for practically anything in UE4, developers basically have to reverse engineer the engine/plugins.
ReBoot 15. Dez. 2022 um 11:48 
Not "a port", both ports.
Ursprünglich geschrieben von ReBoot:
Not "a port", both ports.
english isnt my force.
< >
Beiträge 18 von 8
Pro Seite: 1530 50

Geschrieben am: 15. Dez. 2022 um 11:26
Beiträge: 8