Alle discussies > Steam-forum > Help and Tips > Details van topic
[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?
< >
1-8 van 8 reacties weergegeven
UE needs more ports.
Origineel geplaatst door ReBoot:
UE needs more ports.
Do you know which ones? I'm using 27015 and 27017 as described on the steam wiki.
Laatst bewerkt door Suundumused; 15 dec 2022 om 11:37
Another is 7777
Origineel geplaatst door 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.
You need to forward both.

Generally, anyway. Is there really no server documentation for the game in question?
Origineel geplaatst door 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.
Not "a port", both ports.
Origineel geplaatst door ReBoot:
Not "a port", both ports.
english isnt my force.
< >
1-8 van 8 reacties weergegeven
Per pagina: 1530 50

Alle discussies > Steam-forum > Help and Tips > Details van topic
Geplaatst op: 15 dec 2022 om 11:26
Aantal berichten: 8