# Where does the UniqueId parameter in PreLogin come from?

**URL:** <https://forums.unrealengine.com/t/where-does-the-uniqueid-parameter-in-prelogin-come-from/456021>\
**Category:** Multiplayer & Networking\
**Tags:** gamemode, login, openlevel, client-to-server, unreal-engine, Multiplayer, question\
**Created:** [September 26, 2019, 1:00pm UTC](https://forums.unrealengine.com/t/where-does-the-uniqueid-parameter-in-prelogin-come-from/456021 "2019-09-26T13:00:59Z")\
**Posts on this page:** 2\
**Page:** 1

<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:** [September 26, 2019, 1:00pm UTC](https://forums.unrealengine.com/t/where-does-the-uniqueid-parameter-in-prelogin-come-from/456021/1 "2019-09-26T13:00:59Z")

</div>

Hello everyone, I am currently working with a class of type `AGameModeBase` and am overriding the following method:

```
FString AGameModeBase::PreLogin(const FString& Options, const FString& Address, const FUniqueNetIdRepl& UniqueId, FString& ErrorMessage)

```

But I am not sure where the `UniqueId` parameter is coming from. I know that the `Options` parameter can be passed when calling `UGameplayStatics::OpenLevel` on the client side. However, is there a way to pass a unique id as well through `OpenLevel` or any other method called on a client trying to connect to the server. Currently I pass a unique player id via the `Options` parameter which works fine, but I was wondering how, if possible, I could do it with `UniqueId`?

Thanks in advance for any help provided.

---

<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:** [March 28, 2020, 1:39pm UTC](https://forums.unrealengine.com/t/where-does-the-uniqueid-parameter-in-prelogin-come-from/456021/2 "2020-03-28T13:39:33Z")

</div>

This is a super late response, but I eventually found out that anything to be passed from the client to the server should be done through the `Options` parameter when calling `OpenLevel`. The `UniqueId` parameter of the `PreLogin` function is a random value generated by Unreal Engine and should not be tampered with.
