Suundumused 2022 年 12 月 15 日 上午 11:26
[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 則留言,共 8
ReBoot 2022 年 12 月 15 日 上午 11:35 
UE needs more ports.
Suundumused 2022 年 12 月 15 日 上午 11:36 
引用自 ReBoot
UE needs more ports.
Do you know which ones? I'm using 27015 and 27017 as described on the steam wiki.
最後修改者:Suundumused; 2022 年 12 月 15 日 上午 11:37
ReBoot 2022 年 12 月 15 日 上午 11:39 
Another is 7777
Suundumused 2022 年 12 月 15 日 上午 11:41 
引用自 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 2022 年 12 月 15 日 上午 11:43 
You need to forward both.

Generally, anyway. Is there really no server documentation for the game in question?
Suundumused 2022 年 12 月 15 日 上午 11:46 
引用自 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 2022 年 12 月 15 日 上午 11:48 
Not "a port", both ports.
Suundumused 2022 年 12 月 15 日 上午 11:53 
引用自 ReBoot
Not "a port", both ports.
english isnt my force.
< >
目前顯示第 1-8 則留言,共 8
每頁顯示: 1530 50

張貼日期: 2022 年 12 月 15 日 上午 11:26
回覆: 8