#Hololens – HoloToolkit Sharing: Share holograms between different devices (Post 1 of N, no idea right now the total amount of effort to make it work …)


Now that I’ve found a 2nd set of Hololens to work here in Toronto, is the time to go back to Unity3D and the HoloToolkit. More specific: it’s time to learn and test on one of the less documented features: Sharing Holograms.

Once we have imported package of HoloToolkit Unity (in the right way), we can see in the Assets folder Sharing.


This is the element that we must add to our project of Unity it to have “Sharing” capabilities with other apps on Hololens. In the properties of this element, we see that it uses a couple of interesting classes:

  • SharingStage.cs
  • SharingSessionTracker.cs
  • AutoJoinSession.cs
  • CustomMessages.cs


As always, in the absence of relevant documentation, I recommend you browse the source code since it is the simplest way to understand how this feature works. For now I only some of the [Sharing Stage] properties

  • Client Role: defines the type of customer for a Sharing app. According to the documentation of the class C#:

/// Set whether this app should be a Primary or Secondary client.
/// Primary: Connects directly to the Session Server, can create/join/leave sessions
/// Secondary: Connects to a Primary client. Cannot do any session management

  • Server Address and Server Port: You got this, this is easy: the IP address and port of the server that is used to coordinate the sharing of information between various devices
  • Auto Discover Server: Only enabling this check, our app should be able to discover automatically Sharing Server on the same subnet. In my case, and such time by my local network restrictions, not have been able to discover it automatically, by what I had to configure manually the IP address and port.

After reading all this, comes to ask yourself where you’re Sharing Service. The server is an executable app hidden in the bowels of the HoloToolkit package.


Now you can launch the executable and have our Sharing Service Up and Running.

Note: There is also an option to launch Sharing Service from Unity menus. I have not managed to work. However I could not make it work.


Now, more news, there are 2 ways to use the Sharing Service

  • local, running in app mode
  • service, running as a Windows service


For this example I run the app in local mode. At this time we can see the following in the command console


C:\Hololens\Sharing\Server>SharingService.exe -local
Running Sharing Service locally. Enter ‘q’ to quit.
SharingService: ** Logging Session Began at 23:24:59, 10-6-2016
SharingService: ***********************************
SharingService: ****** Sharing Service OnStart ******
SharingService: ***********************************
SharingService: Server Info:
Build Version:
Schema Version: 15
SharingService: Listening for session list connections on port 20602 of all network devices of the local machine.
SharingService: Local IP addresses are:
SharingService: Created Session “Default” with ID 0 on port 20601

When we launched an app created that use the Asset of Sharing, with properly configured values, we can see that the server detects a new session and begins to show logs on it.


As well, in the next post about Sharing I hope to show how 2 apps share and work on a same hologram!

Greetings @ Toronto

El Bruno



  1. Hello, Thanks for such a nice article. You have mentioned that “there are 2 ways to use the Sharing Service”. If I want to use “service, running as a Windows service” then how can I check sessions joined to the service? How can I launch Session Manager?


    1. Hi Sachin

      I’m not really sure on how to check the current sessions when the Sharing Service is running as a Windows Service. I’ll dig into the source code and try to find an answer



    1. Hi Erik
      Thanks for sharing! And yes, I’ve already done the HoloAcademy course, those are great materials!
      I write most of my posts as a “personal brain backup” 😀


Leave a comment

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.

%d bloggers like this: