# AWS Gamelift + STEAM

**URL:** <https://forums.unrealengine.com/t/aws-gamelift-steam/464190>\
**Category:** Platform & Builds\
**Tags:** Steam, aws, unreal-engine, Multiplayer, question\
**Created:** [April 24, 2020, 1:26pm UTC](https://forums.unrealengine.com/t/aws-gamelift-steam/464190 "2020-04-24T13:26:17Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Nichi\_Rivero](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Nichi\_Rivero](https://forums.unrealengine.com/u/Nichi_Rivero)\
**Post date:** [April 24, 2020, 1:26pm UTC](https://forums.unrealengine.com/t/aws-gamelift-steam/464190/1 "2020-04-24T13:26:17Z")

</div>

Trying to link AWS Gamelift (Amazon Web Services) with my project. Everything turns out, the session is created and the players can connect until I turn on the Steam plugin. With the plugin enabled, when connecting to the server, this error is displayed:

Error: UEngine :: BroadcastNetworkFailure: FailureType = PendingConnectionFailure, ErrorString = incompatible\_unique\_net\_id, Driver = PendingNetDriver SteamNetDriver\_23

How to make Gamelift plugin and Steam work at the same time? I can’t do without steam.

Sorry for my english 🙂

---

<div class="post-metadata">

**Author:** ![chris-gong](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/chris-gong/32/1106462_2.png) [@chris-gong](https://forums.unrealengine.com/u/chris-gong)\
**Post date:** [July 23, 2020, 5:13pm UTC](https://forums.unrealengine.com/t/aws-gamelift-steam/464190/2 "2020-07-23T17:13:13Z")

</div>

It seems that the `UniqueId` parameter passed into your game mode class’ `PreLogin` and `Login` functions is not correct. This issue is briefly talked about in this [forum post](https://forums.unrealengine.com/community/community-content-tools-and-tutorials/41043-advanced-sessions-plugin/page129), and essentially the issue is that in the `PreLogin` function, this `UniqueId` parameter has to be, in your case, a valid steam id. Here is the source code for the `PreLogin` function to better explain this:

```
void AGameModeBase::PreLogin(const FString& Options, const FString& Address, const FUniqueNetIdRepl& UniqueId, FString& ErrorMessage)
{
	// Login unique id must match server expected unique id type OR No unique id could mean game doesn't use them
	const bool bUniqueIdCheckOk = (!UniqueId.IsValid() || (UniqueId.GetType() == UOnlineEngineInterface::Get()->GetDefaultOnlineSubsystemName()));
	if (bUniqueIdCheckOk)
	{
		ErrorMessage = GameSession->ApproveLogin(Options);
	}
	else
	{
		ErrorMessage = TEXT("incompatible_unique_net_id");
	}

	FGameModeEvents::GameModePreLoginEvent.Broadcast(this, UniqueId, ErrorMessage);
}

```

What you can do in this case is override the `PreLogin` function in your server’s game mode class. Then in there, get the steam id through the options that the client passed when connecting to the server through a call to `OpenLevel` or use the options they passed to retrieve the steam id (not sure how to go about this). Finally, using this steam id, call the call the parent class’ `PreLogin` function (for e.g. `Super::PreLogin(Options, Address, SteamId, ErrorMessage)`). In the end it would look something like this in your server’s game mode class:

```
void AYourGameMode::PreLogin(const FString& Options, const FString& Address, const FUniqueNetIdRepl& UniqueId, FString& ErrorMessage)
{
	const FString& SteamId = UGameplayStatics::ParseOption(Options, "SteamId");
    Super::PreLogin(Options, Address, SteamId, ErrorMessage);
}

```

But keep in mind in this case, the clients are expected to pass an option named “SteamId”.

---

<div class="post-metadata">

**Author:** ![FREAKINGREXIS](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@FREAKINGREXIS](https://forums.unrealengine.com/u/FREAKINGREXIS)\
**Post date:** [July 21, 2022, 3:30am UTC](https://forums.unrealengine.com/t/aws-gamelift-steam/464190/3 "2022-07-21T03:30:30Z")

</div>

Hey So im facing an issue like this, but its without the steam dealeo…  
What would I fill in the UniqueID variable with if I dont have a steam id to fill it?
