# Test Steam sessions on one pc (tried with Sandboxie)

**URL:** <https://forums.unrealengine.com/t/test-steam-sessions-on-one-pc-tried-with-sandboxie/358308>\
**Category:** Platform & Builds\
**Tags:** Steam, testing, unreal-engine, session, question\
**Created:** [May 23, 2016, 3:44pm UTC](https://forums.unrealengine.com/t/test-steam-sessions-on-one-pc-tried-with-sandboxie/358308 "2016-05-23T15:44:40Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![matfer](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@matfer](https://forums.unrealengine.com/u/matfer)\
**Post date:** [May 23, 2016, 3:44pm UTC](https://forums.unrealengine.com/t/test-steam-sessions-on-one-pc-tried-with-sandboxie/358308/1 "2016-05-23T15:44:40Z")

</div>

I am using Steam session api for matchmaking in my game, but I am looking for a convenient way to test it using one pc. For example, I want to launch two instances of my game at the same time, so I can create a match on one and join that match from the other.

I tried Sandboxie to launch two Steam clients and two standalone game instances, but it seems that only the first launched correctly connects to Steam client.

I tried this: opening Steam client and launching a standalone instance of my game, then inside [Sandboxie](http://www.sandboxie.com) opening another Steam client (logged with another account) and another instance of the game. The second instance of the game prints this in the log:

```
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 t
he cmdline to disable.
LogOnline:Display: STEAM: OnlineSubsystemSteam::Shutdown()
LogOnline:Warning: STEAM: Steam API failed to initialize!
LogOnline:Display: STEAM: OnlineSubsystemSteam::Shutdown()
LogOnline: Unable to create OnlineSubsystem module Steam
LogOnline: Unable to load default OnlineSubsystem module Steam, using NULL interface

```

If I launch the Sandboxie instances first, the game connects correctly to its Steam client, while when I launch the instance outside Sandboxie it gives the same error messages.

Anyone knows a way to test Steam api while running two game instances on the same machine? Now I am using two machines, but it should be quicker to use just one.

---

<div class="post-metadata">

**Author:** ![HashemShepard](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/hashemshepard/32/1201564_2.png) [@HashemShepard](https://forums.unrealengine.com/u/HashemShepard)\
**Post date:** [November 13, 2022, 4:58am UTC](https://forums.unrealengine.com/t/test-steam-sessions-on-one-pc-tried-with-sandboxie/358308/2 "2022-11-13T04:58:37Z")

</div>

> [@matfer](#):
>
> `Failed to initialize Steam, this could be due to a Steam server and client running on the same machine`

did you fix this or find any work around ? im having the same exact problem

---

<div class="post-metadata">

**Author:** ![jakerieger](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/jakerieger/32/572301_2.png) [@jakerieger](https://forums.unrealengine.com/u/jakerieger)\
**Post date:** [December 5, 2022, 5:43pm UTC](https://forums.unrealengine.com/t/test-steam-sessions-on-one-pc-tried-with-sandboxie/358308/3 "2022-12-05T17:43:07Z")

</div>

Apparently Steam has code in place specifically to disable using sandboxie because of issues with people boosting in games with it.
