# Localize a private VPS

**URL:** <https://community.nianticspatial.com/t/localize-a-private-vps/2057>\
**Category:** I'm Stuck\
**Created:** [May 26, 2022, 9:09pm UTC](https://community.nianticspatial.com/t/localize-a-private-vps/2057 "2022-05-26T21:09:50Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![Eyal\_Erez](https://avatars.discourse-cdn.com/v4/letter/e/9f8e36/32.png) [@Eyal\_Erez](https://community.nianticspatial.com/u/Eyal_Erez)\
**Post date:** [May 26, 2022, 9:09pm UTC](https://community.nianticspatial.com/t/localize-a-private-vps/2057/1 "2022-05-26T21:09:50Z")

</div>

_Include the following details (edit as applicable):_

- **Issue category** : VPS
- **Device type & OS version** : iOS 15.4.1 on iPhone 13 Pro
- **Host machine & OS version** : Mac
- **Issue Environment** : Unity
- **Xcode version** : 13.4
- **ARDK version** : 2.0
- **Unity version** : 2020.3.26f1

Description of the issue:  
I’ve successfully created a private VPS and can see that it was processed and ready to go.

I’ve made a simple iOS build using the WayspotAnchors scene from the sample project.  
However, when I run it I’m immediately getting a “Session Initialized Failed”

Do I need to do anything special to localize with private vps ?

Thanks.

---

<div class="post-metadata">

**Author:** ![marioleo](https://avatars.discourse-cdn.com/v4/letter/m/96bed5/32.png) [@marioleo](https://community.nianticspatial.com/u/marioleo)\
**Post date:** [May 26, 2022, 11:23pm UTC](https://community.nianticspatial.com/t/localize-a-private-vps/2057/2 "2022-05-26T23:23:39Z")

</div>

I have done the same and I’m facing the same issue (but in an Android build), really don’t know if I’ve missed something somewhere.

---

<div class="post-metadata">

**Author:** ![marioleo](https://avatars.discourse-cdn.com/v4/letter/m/96bed5/32.png) [@marioleo](https://community.nianticspatial.com/u/marioleo)\
**Post date:** [May 28, 2022, 9:26pm UTC](https://community.nianticspatial.com/t/localize-a-private-vps/2057/3 "2022-05-28T21:26:09Z")

</div>

I have resolve my issue, apparently it has to do with where you put the license key (or lack thereof), make sure that you put the key only in one place, I’m now using the templates from the Lightship Hub packages, the Lightship Hub comes with a config window where you should put the license key, I have deleted a couple of “resource” folders where the license key was placed or it was blank, including the one that comes with the ARDK examples. I hope it helps.

---

<div class="post-metadata">

**Author:** ![Peng\_Han\_Kum](https://avatars.discourse-cdn.com/v4/letter/p/977dab/32.png) [@Peng\_Han\_Kum](https://community.nianticspatial.com/u/Peng_Han_Kum)\
**Post date:** [May 29, 2022, 8:51am UTC](https://community.nianticspatial.com/t/localize-a-private-vps/2057/4 "2022-05-29T08:51:16Z")

</div>

Mario, I tried everything you mentioned making sure the license key is the same.

I am still unable to localise to a private processed VPS.

Hope someone has figured it out.

---

<div class="post-metadata">

**Author:** ![Peng\_Han\_Kum](https://avatars.discourse-cdn.com/v4/letter/p/977dab/32.png) [@Peng\_Han\_Kum](https://community.nianticspatial.com/u/Peng_Han_Kum)\
**Post date:** [May 29, 2022, 1:01pm UTC](https://community.nianticspatial.com/t/localize-a-private-vps/2057/5 "2022-05-29T13:01:56Z")

</div>

Okay, I finally figured it out. The template I used previous that did not work is the template generated inside the Lightshiphub!

Several hours later I stumbled upon another [ARDK example scenes](https://lightship.dev/account/downloads) which contains another wayspot anchor template (imo better since you can restart scanning localization).

As **marioleo** mentioned above, you need to delete the **ArdkAuthConfig** key inside the example scene resource folder. (Assets\ARDKExamples\Resources)

Then after you build it and load it up, you can be able to localized.

It’s strange that the template that was in the Unity lightshipHub did not work. Hopefully someone in the dev team notices it.

Hope this helps someone.

---

<div class="post-metadata">

**Author:** ![rob\_link](https://sea2.discourse-cdn.com/niantic/user_avatar/community.nianticspatial.com/rob_link/32/1176_2.png) [@rob\_link](https://community.nianticspatial.com/u/rob_link)\
**Post date:** [June 2, 2022, 11:40pm UTC](https://community.nianticspatial.com/t/localize-a-private-vps/2057/6 "2022-06-02T23:40:59Z")

</div>

Hello Eyal,

Sorry for the delayed response.

We were able to test both of the WayspotAnchors scenes – the first located in the ARDK 2.0 Examples package, and the second located in the Lightship Hub package – and we were able to successfully localize against a private scan.

As Peng Han Kum has pointed out, the issue may be occurring because of a duplicate and/or empty **ArdkAuthConfig** object.

Can you confirm that your ArdkAuthConfig is set up properly by searching for “ArdkAuthConfig” in your Project view, verifying that there is only one object and that’s located in `Assets/Resources/ARDK`, and that it contains an API key that belongs to your Lightship account that you’ve created at [lightship.dev/account/projects](https://lightship.dev/account/projects)?

 ![](https://us1.discourse-cdn.com/niantic/original/1X/10c53b720f388053ba16e64e066879260023d298.png)

---

<div class="post-metadata">

**Author:** ![rob\_link](https://sea2.discourse-cdn.com/niantic/user_avatar/community.nianticspatial.com/rob_link/32/1176_2.png) [@rob\_link](https://community.nianticspatial.com/u/rob_link)\
**Post date:** [June 30, 2022, 12:21am UTC](https://community.nianticspatial.com/t/localize-a-private-vps/2057/7 "2022-06-30T00:21:15Z")

</div>

Hi Eyal,

We just wanted to check in and ask if you’re still experiencing issues with localizing against a private scan via the WayspotAnchors sample scene?

If so, we’d be happy to help get to the bottom of the issue together.

---

<div class="post-metadata">

**Author:** ![Eyal\_Erez](https://avatars.discourse-cdn.com/v4/letter/e/9f8e36/32.png) [@Eyal\_Erez](https://community.nianticspatial.com/u/Eyal_Erez)\
**Post date:** [August 5, 2022, 6:28pm UTC](https://community.nianticspatial.com/t/localize-a-private-vps/2057/8 "2022-08-05T18:28:35Z")

</div>

Hi, sorry for the very long delay. I just made a new build and updated to 2.1 and I can confirm that VPS wayspots are being localized correctly now.  
Thank you so much for your help.

---

<div class="post-metadata">

**Author:** ![system](https://sea2.discourse-cdn.com/niantic/user_avatar/community.nianticspatial.com/system/32/13_2.png) [@system](https://community.nianticspatial.com/u/system)\
**Post date:** [August 5, 2022, 8:29pm UTC](https://community.nianticspatial.com/t/localize-a-private-vps/2057/9 "2022-08-05T20:29:02Z")

</div>

This topic was automatically closed 2 hours after the last reply. New replies are no longer allowed.
