# Steam Dedicated server API Failed to initialize

**URL:** <https://forums.unrealengine.com/t/steam-dedicated-server-api-failed-to-initialize/236023>\
**Category:** C++\
**Tags:** unreal-engine\
**Created:** [June 17, 2021, 8:05pm UTC](https://forums.unrealengine.com/t/steam-dedicated-server-api-failed-to-initialize/236023 "2021-06-17T20:05:10Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![imnomad](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@imnomad](https://forums.unrealengine.com/u/imnomad)\
**Post date:** [June 17, 2021, 8:05pm UTC](https://forums.unrealengine.com/t/steam-dedicated-server-api-failed-to-initialize/236023/1 "2021-06-17T20:05:10Z")

</div>

Hi everyone, i have followed the Engine documentation to set up the steam configuration for server and client, right now I’m trying to get steam to recognize the server, but I’m getting this on the dedicated server input.

[2021.06.17-19.56.00:709][0]LogOnline: OSS: Creating online subsystem instance for: Steam  
[2021.06.17-19.56.00:716][0]LogSteamShared: Warning: Steam Dedicated Server API failed to initialize.  
[2021.06.17-19.56.00:716][0]LogOnline: STEAM: [AppId: 0] Game Server API initialized 0  
[2021.06.17-19.56.00:716][0]LogOnline: Warning: STEAM: Failed to initialize Steam, this could be due to a Steam server and client running on the same machine. Try running with -NOSTEAM on the cmdline to disable.  
[2021.06.17-19.56.00:716][0]LogOnline: Display: STEAM: OnlineSubsystemSteam::Shutdown()  
[2021.06.17-19.56.00:716][0]LogOnline: Warning: STEAM: Steam API failed to initialize!  
[2021.06.17-19.56.00:716][0]LogOnline: Display: STEAM: OnlineSubsystemSteam::Shutdown()

Im using a source build of UE4.26.2 with steamworks v1.47

Thanks in advance.

---

<div class="post-metadata">

**Author:** ![STRiFE.x](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/strife.x/32/969826_2.png) [@STRiFE.x](https://forums.unrealengine.com/u/STRiFE.x)\
**Post date:** [June 17, 2021, 10:00pm UTC](https://forums.unrealengine.com/t/steam-dedicated-server-api-failed-to-initialize/236023/2 "2021-06-17T22:00:23Z")

</div>

Are you testing in the editor? Because that’s not going to work.

---

<div class="post-metadata">

**Author:** ![imnomad](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@imnomad](https://forums.unrealengine.com/u/imnomad)\
**Post date:** [June 17, 2021, 10:09pm UTC](https://forums.unrealengine.com/t/steam-dedicated-server-api-failed-to-initialize/236023/3 "2021-06-17T22:09:00Z")

</div>

Ho STRiFE, I’m compiling the project and lounching it as an executable with the following shortcut inputs: -log HBMap -port=7780

HBMap is the map I’m using, and 7780 is the port, -log is just for the Dedicated Server window to display.

---

<div class="post-metadata">

**Author:** ![STRiFE.x](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/strife.x/32/969826_2.png) [@STRiFE.x](https://forums.unrealengine.com/u/STRiFE.x)\
**Post date:** [June 18, 2021, 6:49am UTC](https://forums.unrealengine.com/t/steam-dedicated-server-api-failed-to-initialize/236023/4 "2021-06-18T06:49:57Z")

</div>

Ah, unfortunately I’m not familiar with dedicated servers so this was my only guess.

---

<div class="post-metadata">

**Author:** ![imnomad](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@imnomad](https://forums.unrealengine.com/u/imnomad)\
**Post date:** [June 22, 2021, 3:22pm UTC](https://forums.unrealengine.com/t/steam-dedicated-server-api-failed-to-initialize/236023/5 "2021-06-22T15:22:13Z")

</div>

bump

---

<div class="post-metadata">

**Author:** ![Damion\_Knife](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Damion\_Knife](https://forums.unrealengine.com/u/Damion_Knife)\
**Post date:** [June 23, 2021, 1:23pm UTC](https://forums.unrealengine.com/t/steam-dedicated-server-api-failed-to-initialize/236023/6 "2021-06-23T13:23:07Z")

</div>

Hey there, I get the same error and its freaking me out. Do you have your own AppiD? Are you using c++ or Blueprints? Are you running your server on the same machine as steam is running? I read and its also in the logs that steam doesnt like that which is still weird for me because Im running the server via AWS. I followed this tutorial: [https://www.youtube.com/watch?v=QHB1H6eM-vc&t=602s](https://www.youtube.com/watch?v=QHB1H6eM-vc&t=602s)

Also is it shipping build or development?  
If you have your own AppId, did you fill all the info in the dedicated section in steamworks and publish it?  
Maybe we can work this out together 🙂 Im not a pro and just learning this stuff .

---

<div class="post-metadata">

**Author:** ![imnomad](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@imnomad](https://forums.unrealengine.com/u/imnomad)\
**Post date:** [June 24, 2021, 11:51pm UTC](https://forums.unrealengine.com/t/steam-dedicated-server-api-failed-to-initialize/236023/7 "2021-06-24T23:51:04Z")

</div>

I do have my appID, its a shipping build, I have not filled the dedicated section because the servers will not be public for the moment, but i need the server to get and detect the Dedicated server API.

---

<div class="post-metadata">

**Author:** ![Damion\_Knife](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Damion\_Knife](https://forums.unrealengine.com/u/Damion_Knife)\
**Post date:** [July 2, 2021, 1:20pm UTC](https://forums.unrealengine.com/t/steam-dedicated-server-api-failed-to-initialize/236023/8 "2021-07-02T13:20:44Z")

</div>

Hey again, I think you have to try with filling out the dedicated section and matching it with the engine. ini and also with target.cs. I mean these lines both servertarget.cs and gametarget.cs

GlobalDefinitions.Add(“UE\_PROJECT\_STEAMGAMEDESC=“Your Game””); // Just the name of your game - like in steamworks dedicated server section

GlobalDefinitions.Add(“UE\_PROJECT\_STEAMPRODUCTNAME=“yourgame””); // match this with steamworks dedicatedserver section

GlobalDefinitions.Add(“UE\_PROJECT\_STEAMGAMEDIR=“yourgame””); // same as above

GlobalDefinitions.Add(“UE4\_PROJECT\_STEAMSHIPPINGID=yourappid”);

also make sure steamclient is installed on the server machine which is hosting the game and open all the neccessary ports : [Steam Support :: Required Ports for Steam](https://support.steampowered.com/kb_article.php?ref=8571-GLVN-8711&l=english)

for me it helped, I can now init steam on my dedicatedserver and also from client machine join the server
