instantreality forum
news: Welcome to the instantreality forums!
Welcome, Guest. Please login or register.
Did you miss your activation email?
April 24, 2018, 03:37:01 am

Login with username, password and session length

Pages: [1]
Author Topic: More than one Player  (Read 980 times)
Posts: 1

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

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();

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?
Pages: [1]
Jump to:  

Powered by SMF 1.1.15 | SMF © 2011, Simple Machines