Rss

  • youtube

SteamCore & Dedicated Server

DISCLAIMER

I will not give support for issues related to firewall and/or not being able to see your server, as this is out of the scope of this plugin, the Plugin is made to give users the ability to use Steam API functionality in blueprints and is not a Steam Networking or Unreal Networking plugin.

Choose your method of connecting

There are 2 ways of connecting to a dedicated server using Steam and Unreal Engine 4, the traditional way is running the console command “open 123.123.123.123” to connect via IP, the other way is using SteamNetworking and connecting via SteamID, I’ll cover both methods and setup down below!

The Traditional Way

If we want to use the traditional “connec to IP” way, we have to disable SteamNetDriver and SteamNetworking, see the DefaultEngine.ini config example below

[URL]
GameName=GameName
Port=7777

[OnlineSubsystemSteam]
bEnabled=True
SteamDevAppId=480
bVACEnabled=True
SteamAppId=480
bUseSteamNetworking=false 

[/Script/OnlineSubsystemUtils.IpNetDriver]
MaxClientRate=1000000000 
MaxInternetClientRate=1000000000
InitialConnectTimeout=120.0  

[OnlineSubsystem]
DefaultPlatformService=Steam 

We should not add the NetDriverDefinitions or configure the SteamNetDriver, this is the only Steam-related config you need to get a dedicated server to run.

Using SteamNetworking

[URL]
GameName=GameName
Port=7777

[OnlineSubsystemSteam]
bEnabled=True
SteamDevAppId=480
bVACEnabled=True
SteamAppId=480
bUseSteamNetworking=True

[/Script/OnlineSubsystemUtils.IpNetDriver]
MaxClientRate=1000000000 
MaxInternetClientRate=1000000000
InitialConnectTimeout=120.0  

[OnlineSubsystem]
DefaultPlatformService=Steam 

[/Script/Engine.Engine]
!NetDriverDefinitions=ClearArray
+NetDriverDefinitions=(DefName="GameNetDriver",DriverClassName="OnlineSubsystemSteam.SteamNetDriver",DriverClassNameFallback="OnlineSubsystemUtils.IpNetDriver")

[/Script/OnlineSubsystemSteam.SteamNetDriver]
NetConnectionClassName="OnlineSubsystemSteam.SteamNetConnection"

Here we add and configure SteamNetDriverso we can connect using SteamID and utilize SteamNetworking

Initializing the Dedicated Server

Finding our server

There are 2 ways of finding our server, either method works fine but “RequestInternetServerList” will give you more details about the server

Connecting to our server

Using Traditional IP

Using SteamNetworking

Server browser in Steam Client

Can’t find your server, or only visible as LAN server?

If your server is only listed on LAN and not Internet, you need to configure your firewall AND you must use a computer on a different network to see it listed on the internet, ask a friend to find it or disable your LAN connection to the server.