instantreality forum
news: Welcome to the instantreality forums!
 
*
Welcome, Guest. Please login or register.
Did you miss your activation email?
January 22, 2018, 09:03:43 pm


Login with username, password and session length


Pages: [1]
  Print  
Author Topic: More than one Player  (Read 793 times)
argonaut01
Newbie
*
Posts: 1


View Profile
« on: February 22, 2016, 09:37:31 am »

Hi,
I want to have two Instant Players running in my application at the same time.
Right now I start my players like this:

var instantReality = new Process();
instantReality.StartInfo.FileName = irPath;
instantReality.StartInfo.WorkingDirectory = Environment.CurrentDirectory;
instantReality.StartInfo.Arguments = x3dUri.AbsoluteUri.ToString();
instantReality.Start();

and then contact them using:

System.Net.IPAddress adress = System.Net.Dns.GetHostEntry(ip).AddressList[0];
Browser browser = BrowserFactory.GetBrowser(adress, 4848);

Just doing this twice won't distinguish between players, so that I cannot access the nodes from the second player at all.
I read that you can supposedly configure the port number which might solve my problem but I don't know how to do that.

Can anyone help?
Thanks.
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by SMF 1.1.15 | SMF © 2011, Simple Machines